How to check Php version
1 min read

How to check Php version

Last Updated on

Hello Friends,Today I am share about how to check php version in localhost and server.

If you are developing a php application using wamp ,xamp etc,some new php function are not worked or some modules are not enabled(ex:curl). In that case we need to check php version. Simple way to check php version in localhost.

<?php
echo phpinfo();
?>

Create a new php file paste the above code and save file in your localhost root directory(htdocs Or WWW) .

I have save file in the name of phpinfo.php and run it.
localhost/phpinfo.php
It will print the entire information abut your php version

If you want check your server php version follow the same way.

2 thoughts on “How to check Php version

Leave a Reply

Your email address will not be published. Required fields are marked *

18 − five =