Is PHP running on my web hosting?

In order to execute PHP scripts, you need PHP running on your server or your desktop PC (yes you can have PHP on your desktop PC). If you are unsure if you have PHP with your host, one of the quickest tests is to upload a simple PHP script and try to run it. Here is how:

  1. Create a blank file and call it phpinfo.php. The .php at the end is very important! It cannot be .php.html or .php.txt or anything but .php.

  2. Put this code in the file:

    <?php phpinfo(); ?>

  3. Save and upload the file to your hosting into the root folder.

  4. Try to run the file by going to If you get an error probably you have uploaded the file not in the root folder but somewhere else. If you see the code from the file you uploaded, then you cannot run PHP. If you can run PHP you will see all information about the configuration of PHP on your host. The information usually looks like this:

Your thoughts

No comments

Add comment

* - required field