Logged in as: Guest | Login/Register
 

How to check PHP version number

Tutorials > Web Development > PHP > Tips And Tricks > How to check PHP version number

Discuss this tutorial here | Search www.geeksww.com for more tutorials here

PHP provides several functions that depend upon the version number of PHP you are running. In situations, where you want to find the version number of PHP installed, you can use the following techniques.

Assuming that your web server has already been set up to support PHP, enter the following code in a PHP file e.g. info.php and put it somewhere inside your document root.

<?php phpinfo(); ?>

Now, visit the page from your browser by entering the URL to the page e.g. http://<domain name>/path/to/file/info.php

You’ll see a page with a lot of details about the current PHP setup on your machine. At the very top you should be able to find the version number of your PHP installation.

Assuming that the PHP interpreter is in your path, hence can be accessed by typing php on the command line. You can also run the following command to find PHP’s version number.

C:/>php –v



 
Discuss this tutorial here | Search www.geeksww.com for more tutorials here
 

Similar Tutorials:

 

Support Geeks Worldwide:

Link to us:

You can support us by putting a link to our website on your blog or website (code is below).

<a href="http://www.geeksww.com/">
Geeks Worldwide - Tutorials about Software Installation,
Configuration, Administration, Monitoring, Tools, Tips &
Tricks
</a>

OR a simple one.

<a href="http://www.geeksww.com/">
Geeks Worldwide - IT related Tutorials
</a>

Feedbacks:

We appreciate feedbacks and suggestions about our tutorials and Geeks Worldwide from readers. Please contact us using the form here and let us know what you think about the tutorial and the website in general.

Bookmark Us:

We are working on new features for the website, please keep visiting or bookmark us using your favourite bookmarking service.

Subscribe to RSS:

You can subscribe to our RSS feed here.

 
Creative Commons License