How to Check check php version command line linux

Today, We want to share with you How to Check check php version command line linux.In this post we will show you check mysql version ubuntu command line, hear for How to check my PHP and MySQL version on Ubuntu VPS? we will give you demo and example for implement.In this post, we will learn about How to Check PHP MySQL Version on Ubuntu VPS? with an example.

How to Check check php version command line linux

There are the Following The simple About How to Check check php version command line linux Full Information With Example and source code.

As I will cover this Post with live Working example to develop check if php is installed ubuntu, so the check mysql version ubuntu for this example is following below.

Do it from your (CMD / Terminal)command line:

php -v
mysql -V

run in Terminal

php -i | grep -i '^libxml'

simple your PHP file Put this in your below source code in root directory:


Save it as phpcheckversion.php after that point your any default browser to it (this could be http://localhost/phpinfo.php)

How to check the PHP version on Linux

# php --version
pakainfo@server:/opt/lampp/htdocs/mywebproject$ php --version
PHP 7.3.6-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: May 31 2019 11:06:26) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.6, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.3.6-1+ubuntu16.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies
Web Programming Tutorials Example with Demo

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about How to Check check php version command line linux.
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Leave a Comment