Jon Tan / 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.

Sharing

  1. Tweet this or follow Jon on Twitter
  2. Del.ici.ious logoAdd to del.icio.us
  3. Digg iconPost to Digg
  4. Feed iconRSS / Atom feed (log)