Tuesday 15 July 2008

Check If Your Hosted Website Has Access To PHP

When I built my hosted website I didn't intend to use PHP, so later on when I wanted to try out some PHP, I wasn't sure if I had access to use it and if I did which version of PHP it was.
I had to do a lot of searching to find out how to check if I had PHP or not, but when I found a solution I realised that it was probably because it is very simple. But these things are only simple if you know, so..

1) Create a file on your website called phpinfo.php (Can be called anything but should end with .php)
2) The file should contain one line:

<?php phpinfo(); ?>

3) Call the file through your web browser. If you have PHP it should come back with the version details.

Done...

No comments: