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.

Read Also:  PHP MySQL Column Sorting Examples

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:

Read Also:  str_slug laravel 6

<?php
    phpinfo();
 php?>

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

[email protected]:/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 :

Read Also:  CodeIgniter TCPDF Integration – create pdf page in tcpdf codeigniter

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.


Related FAQ

Here are some more FAQ related to this Article:

  1. Read Also:  Vuejs Filter Currency Round to 2 decimal places
  2. Read Also:  PHP Dynamic PDF Files Tutorial using fpdf
  3. Read Also:  how to fetch and update data from database in php?
  4. Read Also:  jQuery Validation Email Mobile password Regular Expression
  5. Read Also:  WordPress HTTP REST API Error Handling
  6. Read Also:  Wordpress woocommerce get product tags
  7. Read Also:  How to Create, Access and Destroy Sessions in Asp.Net
  8. Read Also:  PHP MySQL Column Sorting Examples
  9. Read Also:  How to Create, Access and Destroy Sessions in Asp.Net
  10. Read Also:  Wordpress woocommerce get product tags
CLOSEX