JonTangerine / silo / PHP / Using phpinfo() to Discover the PHP Version and Modules Installed on your Server

  1. Create a file with one line in it:
    <?php phpinfo(); ?>
  2. Save the file as test.php
  3. Upload to your server
  4. Navigate to the page using your web browser

If PHP is installed on your server that single line of code will print out a heap of detailed information about the version and configuration of PHP you have available. If it is not installed the page will be returned blank.

Further reading: About phpinfo() on PHP.net.

Share This!

  1. Del.ici.ious logoPost to del.icio.us
  2. Digg iconPost to Digg
  3. Newsvine iconSeed to Newsvine
  4. Feed iconRSS / Atom feed (log)
Jon Tan fecit, 2006–2007. download vCard (via X2V).

This work is licensed under a Creative Commons Attribution-Share Alike 2.0 UK: England & Wales License.