Skip to content

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.

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

Topic: Site Management
Tagged as: PHP, server applications, web browser

Share on FriendFeed

{ 0 comments… be the first to comment }

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Any comments that look like spam will be treated as spam - this includes SEO titles and use of spurious keywords.

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