Skip to content

Administrator Tips icon

Finding Out Your Version of PHP

How do you go about finding out your version of PHP, or other server applications running on your server? Here's how…

If you need to check which version of PHP your site is running on, or what your session.save_path is, whether register_globals are on or not, or any other server information about your site, create a file with a text editor, calling it info.php (you can call it anything you like as long as you create the file with the .php extension).

In the file, put this one line of code:

      <?php phpinfo(); ?>

Make sure you use the "any file" save option so it saves as a .php file (and not a .txt file).

Upload the file to your site, then call it in your web browser, eg. http://yourdomain.com/info.php

The information you need will show in your browser.

Once you have copied the information, delete the php info file from your server space so unauthorised people can't get to see your site/server details.

Bookmark This:
  • bodytext
  • Technorati
  • del.icio.us
  • Facebook
  • Google
  • StumbleUpon
  • Reddit

Whether I am developing Mambo or working on tutorials I am fuelled by coffee. Caffeine keeps me going so if you like the work I am doing please click on the cup to buy me a coffee today. Just $10 covers the cost of getting my caramel macchiato ;)

If you enjoyed this article make sure you subscribe to my RSS feed!

Leave a Reply

This is a gravatar-friendly site, enter your email address to use your gravatar.

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

By submitting a comment here you grant this site a perpetual license to reproduce your words and name/web site in attribution.