Showing Date With PHP

Wanting to learn how to display the time / date on your webpage, I will show you how with this fast and easy PHP Tutorial, this tutorial is very basic and should be extremely easy to implement.

Heres an example of how to display the date and time like: Fri May 13, 2005 12:01:21 (or whatever the date and time is currently)

Read More on How to show Date with PHP

Password Protection with PHP, MySQL, and Session Variables

One of the great promises that actually came true when our Internet-enabled world reached the twenty-first century is efficient customer-to-business interaction. Each day, I find a new way to go through life’s errands without ever waiting on hold for a bank teller, a pharmacist, or an insurance agent. I do it all online.

Internet savvy consumers are coming to expect such web empowerment. And while these information transactions usually require some sort of private data traveling the ether, you, as the webmaster, bear the burden of keeping that data away from those who have no right to it.

Since retina scans and brain wave signatures are still properties of James Bond flicks, we’re stuck using plain old boring passwords.

Is this really secure?

Read full Article

PHP Web development Advantages

Advantages of the PHP Web development services:


• Low development and maintenance cost

• High performance and reliability

• Ability to embed itself into the HTML code

• Compatible with servers like Apache and IIS

• Low execution, maintenance and debugging costs.

• Runs on Apache web server, and in turn Apache runs on Windows, Linux, Solaris, and various other Unix platforms, so whatever server investments have been made, can be utilized .

• Utilization of various open source applications and pre-packaged PHP modules during application development saves round 30% - 40% of the development time.

• PHP is Open Source. Open Source means you never need to rely on the manufacturer to release the next version if something doesn’t work or pay for expensive upgrades.

• PHP is also endowed with other goodies, like native support for many popular. databases, an extensible architecture, and a processor that not only uses fewer resources on the server than many of its competitors, but also displays pages in record time.


Read more Advantages of PHP Web Development

Choosing PHP as Web Development Languages

PHP is a powerful server-side scripting language for creating dynamic and interactive websites. PHP is an easy and user friendly language. Developer with sound knowledge of html an having little bit programming skill can easily create their own web pages. PHP can be easily embedded into HTML Pages and completely suitable for Web development. PHP is often used together with Apache (web server) on various operating systems. PHP is an open sources language. Suppose you wanted to create a survey to collect information from visitors to your web site.

For example you have a food supply store that sells tea, coffee, and biscuits. To gather order information from our customers we will have to make a page with an HTML form to gather the customer's order. Using an associative we can get this information from the $_POST associative array. PHP is also used to send secure mails and to collect information from contact form and other link exchange forms. In the recent years many developer has started using PHP as an open sources languages. PHP is stands for PHP Hypertext Preprocessor, is a server-side embedded scripting language. When a page is requested that contains PHP, the processor translates and executes all the commands in the page, and then outputs the result to the browser as regular HTML. Resembling other scripting languages, like ASP, PHP can be embedded directly into HTML. A Start and end entry separates PHP from HTML. There is no secret that there are other languages too like ASP, Perl, Cold Fusion that are the alternatives to PHP. But each of these languages have complexity and differences in syntax and structure. Here are the few advantages of using PHP are:

Read Full Article

PHP and Cookies; a Good Mix!

Introduction

Cookies have long been used in PHP scripts, and are a very useful function. But what exactly are cookies? Maybe you have used then, but you still don't know exactly what they are. Or you are completely new to cookies? It doesn't matter, because in this tutorial I will show you exactly what cookies are, and what they are used for.

Cookies in a nutshell

Cookies are small pieces of information that is stored on the computer of your visitors. Each browser handles it differently, but most simply store the information in a small text file. Internet Explorer has a special folder, which can be found in your C:\Windows or C:\Windows\System32 folder. You can delete all your cookies, by going to the Options and 'Clearing Cookies' or deleting them by hand. I don't recommend this though.

Almost every website uses cookies. If you go to Amazon.com, you will get several cookies. The same goes for CNN.com. Even Google uses cookies! They are extremely useful for (temporarily) storing information. For example, if you have a login system for your visitors, you could save their userid and password (very heavily encrypted!) so they are automatically logged in the next time they visit your website.

Or you could remember their last visit, and highlight everything that is new. And that's just the beginning.

Using Cookies

Using cookies in PHP is extremely easy. In fact, there is nothing to it, because of PHP's inbuilt setcookie() function (http://php.net/setcookie). Have a look at the documentation, and then try the following example:

Read Full Article

PHP Nuke Themes: For a New Look and Feel

MYSQL database supports PHP scripting Language. The web based automated news publishing and content management system is provided by PHP nuke. It is a open source software which is released under a GUI interface. It allows the free downloading and installation. By this software you can create a web blog or use it just as a CMS. It also allows the editors to eas Content Management System, post contents and create comments threads.


There is an advantages of PHP Nuke is, it is a open source project, because PHP Nuke is an open source, which is a large community of developers who work on

PHP Nuke. In additional to that flow of free PHP Nuke modules, free PHP Nuke Add-ons and free PHP Nuke template never appear to end. Ta PHP Nuke

Read full Article on PHP Nuke Themes

Get PHP pages indexed in the Search engines

A simple method to convert files from Php to Html Extensions, on an Apache Server

Most will agree Php has become the common language for creating dynamic Websites. Although the language is simple and efficient, developers are finding trouble getting traffic to their Php site. It is believed by many educated Search Engine Optimization Specialists that spiders do not read beyond the, “.php,” on a URL. Therefore, dynamic pages that pass a variable will be overlooked. For example, on a PHP directory, variables may be passed to a file as, “index.php?category=x”. In this instance, the category specified as “x” will not be read or indexed by Search Engines. Spiders will open the parent page (index.php). This is supported by the belief that nothing is read beyond the “?”, thus making all category links, “index.php”.

While many dynamic Websites still receive modest traffic, it may be in a developers’ best interest to allow some, or all, dynamic pages to be seen as well. Having two pages indexed may not double a sites’ traffic, but it will ensure a noticeable increase. Developers’ can easily overcome this problem, if their Site resides on an Apache Server.

This simple fix will satisfy the problem for a simple script, as in the example above, where one or more Php files are passed variables to perform different functions. Bare in mind, if a Php file only performs one task, this is not required. Files that perform a task without the “?variable=x” being required will be indexed. Therefore, it would be useless to transform them to a Static URL (HTML File).

Identify the Php File Needing to be changed to an Html

First, identify the desired file, or files, that require the change, along with the variables that generate a common page. Generally, this may be, “index.php”. To help readers follow along, I am going to utilize the above Directory example. On our Directory program, we have a main page, “index.php,” which always displays links to Subdirectories. The subdirectories are opened by passing a variable to the index file. For example, a subcategory called, “Arts and Crafts,” is displayed with, “index.php?category=1”. Additional subcategories are displayed with an identical syntax, but the end variable changes. Because of this, we need to modify the way our server opens the index.php file, when a variable is attached.

Next, we need to place a simple .htaccess file in the directory where, “index.php,” is located on the server. The .htaccess file is a simple text file that we name .htaccess. Vdeck users may need to create a file named something.txt, and then rename the file to .htaccess, from the admin panel. Now we need to specify some variables to the server. For this example, I am going to change the, “?category=x,” variable to, “directory-x.html”. This step will eliminate our problem of having the subcategories noticed by Search Engine Spiders.

To start our server variables, we need to create a rewrite engine in the .htaccess file. Simply put our first line will read, “RewriteEngine On”. This tells the server we are changing the way certain files are to be handled. No we need to specify our Rewrite rule. On the next line, “RewriteRule ^directory-([0-9]*).* index.php?category=$1 [L,NC],”. This is delegating, “requests to this directory, where the file is named, “directory-,” followed by a range of 0 to 9, followed by anything (* = Wildcard) and, “dot,” anything (* = Wildcard), we are going to display, “index.php,” file with the variable attached. We can create another rewrite rule on another line of our .htaccess file. However, a meticulous developer likes to test things out before making changes to the actual Php file, or progressing ahead of oneself. We can test our, “RewriteRule,” by opening another browser window and entering, “directory-1.htm or directory-1.html,” into the address bar. We should see the same page displayed as, “index.php?category=1,” is called.

Read Full Article