PHP is the popular scripting language that many Web sites use to create dynamic pages. For example, this site's forums are largely dependent on PHP and its ability to fetch and post data from various sources such as a mySQL database.
Of course, in order to take advantage of PHP, you will need to have PHP functioning on your server. This article will not explain how to install PHP, but this article will explain how to test if PHP is installed and configured properly in your server:
The Code:
First, launch Notepad or another ASCII text editor. Simply type the following and save the file as info.php or anything similar as long as the file extension is .php.
phpinfo();
Once you have your file saved with a .php extension (info.php for me), upload the file to your Web server. Once the file has been uploaded to your server, preview the file you uploaded in your Web browser.
If PHP is successfully installed, you should see something describing your installation details. If you do not have PHP installed, you may receive a server error message, the code you copied displayed, a prompt to download the PHP file, or any other number of reasons. If you are a server administrator, visit the following URL for more information: http://www.php.net/