Testing
your PHP Installation
code by eyezberg & explanation by kirupa
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.
[ copy the above into
Notepad/ASCII editor and save the file with a .php extension
] 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 similar to
what you see in the following URL:
http://www.kirupa.com/web/info.php
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/
I hope this information
helped. If you have any questions or comments, please don't
hesitate to post them on the forums found by clicking
here. Regards,
 |
eyezberg |
 |
kirupa |
|