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

Warning: file_get_contents(): http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /nfs/c08/h05/mnt/123736/domains/ on line 7

Warning: file_get_contents( failed to open stream: no suitable wrapper could be found in /nfs/c08/h05/mnt/123736/domains/ on line 7


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

This is the archive of version one, made in 2006, launched in 2007, and active until 2012. It’s archived to preserve the original design and its content that was referenced in multiple posts, books and galleries. There's a holding page before the new site arrives.