check if php is installed code example
Example 1: how to cheeck php
<?phpphpinfo(); ?>
Example 2: test if php is installed
Create a php file containing code <? php echo phpinfo(); ?> and save it as test.php.
then you have installed PHP properly.
Example 3: php version command linux
PHP 5.4.16 (cli) (built: Mar 7 2018 13:34:47)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
Example 4: php version command linux
PHP 5.4.16 (cli) (built: Mar 7 2018 13:34:47)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies