1. Home
  2. Computing & Technology
  3. PHP / MySQL

What Version of PHP Am I Running?
A simple way to check your PHP version

By Angela Bradley, About.com

Different versions of PHP may have different default settings, and in the case of newer versions might have new functions. If you can't get something to work, and think it might be because you have the wrong version of PHP there is a simple way to check. Simply running the phpinfo () function will not only tell you your PHP version but an abundance of information about all your PHP settings. Here is an example:
<?php phpinfo() ?>
Just put that single line of code in a PHP file, and run it on your server. That's it! By running the file you should have all of the PHP information you need.
More PHP / MySQL Quick Tips
Explore PHP / MySQL
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. PHP / MySQL
  4. Troubleshooting
  5. Check Your PHP Version - What Version of PHP am I Running?

©2009 About.com, a part of The New York Times Company.

All rights reserved.