From the category archives:

Code Snippets

How To Check If Your Web Site Can Run PHP Scripts (or WordPress)

April 10, 2008

Create a file called phpinfo.php

Enter these few lines of code in it: (you can copy-paste from below):
<?php
phpinfo();
?>

Upload this to your root folder (where your home page (index.htm or index.html etc) lives.

Access this script via the browser like this:
http://www.YourSite.com/phpinfo.php

You should see a nice page come up, with the PHP logo and headers, that shows all [...]

Read the full article →