1. Technology
You can opt-out at any time. Please refer to our privacy policy for contact information.

What Version of PHP Am I Running?

A simple way to check your PHP version


What Version of PHP Am I Running?
Michael DeLeon/E+/Getty Images
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.
Related Video
Basic PHP Syntax
Using PHP With HTML
See More About
  1. About.com
  2. Technology
  3. PHP / MySQL
  4. Troubleshooting
  5. Check the Version of PHP You're Running

©2014 About.com. All rights reserved.