Thursday, November 29, 2007

How to check the PHP version of you hosting space?

There are several ways on how you can check the PHP version that is supported in your hosting space. Basically, they offer PHP versions 4 and 5.



You can check the version using SSH connection if your package supports such way. Secondly, you can go check the default PHP version that they run through a URL address predefined for their test script to display the php version. Lastly, you can create your own script, have it upload to your webspace and call it in the address bar to view the version.


SSH Connection

You just need to type in the command php -v
It will then display the text indicating the version of the PHP it has.



URL test script

You may use a domain or a subdomain that is currently pointing to Webspace(/.) which means the root directory. Browse the URL in this format, http://yourdomain.com/logs/info.php



Own test script

We can create a file named version.php. The file needs to contain a simple line



















0 comments: