PHP can do anything that CGI can do, such as process form data and auto generate dynamic content, but PHP can do much more.
It can be used on all major operating systems and supports most web servers.
PHP is used by inserting PHP code inside your web page’s HTML code. When the page is called, your server automatically executes the code. What’s more, your visitors don’t need any special plug-ins for the code to run, as it will be displayed just like your HTML coding.
As PHP is a server-side scripting language, although your visitors will not need to install any new software, PHP must be set up on your server.
Following is a very simple script that will test your server to ensure PHP is installed. It is a standard PHP function called phpinfo, which instructs the browser to print out information in regard to the set up of your server.
To use the script, simply copy the following three lines of code and paste them into a plain text editor, such as Note Pad.
Note: To enable the code to display properly, a period has been added following the opening bracket. You’ll need to remove this period prior to using the code.
phpinfo();
?>
Save the file as phpinfo.php and upload it to your server where you store your HTML files.
To run the script, simply point your browser to the script address. It should look something like this: http://www.yourdomain.com/phpinfo.php
If PHP is installed on your server, you will be presented with a page of information about the PHP installed on your server.
If PHP isn’t installed, you will be prompted to download the file. In this case, you’ll need to contact your web host and ask them to install it, as it is free to download and install.
You can learn more about PHP and download it at
http://www.PHP.net.
Head SEO, Marketing at AIT India