1. Computing

Discuss in my forum

Do I Have PHP?

Is PHP running on my web hosting?

By , About.com Guide

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

  1. Create a blank file and call it test.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.

  4. Try to run the file by going to www.yoursite.com/test.php. If you see your code, then you cannot run PHP. If you can run PHP you will see all the PHP information as it pertains to your hosting.
  1. About.com
  2. Computing
  3. PHP / MySQL
  4. Troubleshooting
  5. Do I Have PHP - How to Know if You Have PHP

©2013 About.com. All rights reserved.