1. Home
  2. Computing & Technology
  3. PHP / MySQL

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.
More PHP / MySQL Quick Tips
Explore PHP / MySQL
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. PHP / MySQL
  4. Troubleshooting
  5. Do I Have PHP - How to Know if You Have PHP

©2009 About.com, a part of The New York Times Company.

All rights reserved.