Page 1 of 1

PHP Check Server Script

Posted: Sat 11 Oct 2008 8:05 am
by TNETWeather
.
PHP Check Server Script

The purpose of the script has multiple purposes....

First it will determine if your web server supports PHP. If it does, it will give what version of PHP and provide a list of PHP capabilities and the end of the page.

Assuming it finds PHP support, it will then look to see if your server has GD support. It will also tell you what capabilities your GD provides support for including FreeType support (TrueType fonts) and which version of GD is support as well as a list of what types of graphical formats it supports.

It will also provide you with the directory that the script is running from, so that if you uploaded the script in your main web directory, that would be considered the hard path to your directory.

All of this information is useful if you want to use some of the many PHP based scripts that will be posted in the Website Development section of the forum.

As needed, this script will be updated with new checks...

How to use:

Copy the source below and upload to your webserver. Then using a browser, browse to your website and point at the checkserver.php script. If you point to the correct file, you will see output like below:

Sample Output:

Image

IMPORTANT

After you have run the script and collected the information you want from it, it is a good idea to remove the script. This script provides a lot of details about your server (version numbers, modules etc) that could potentially be used by someone to attempt exploits. You can always reload the script again to get the information you need later.

Source:
TNET Cumulus Project Page