Check the installed PHP version

How can we check the installed PHP version

To check the PHP version installed in our web space, we can do it simply through the following statement <? Php phpinfo (); ?> in a plain text file with extension .php

We can create a file with the name of our presence and save it with the extension .php, to visualize all the information of our PHP we upload our file to the root directory of our web domain and load it.

<?php
phpinfo();
?>

Was this answer helpful?

Related Articles

How to install any version of PHP

Install any version of PHP The official CentOS 7 repositories have PHP 5.4 that has reached the...

What is cURL?

cURL (pronounced 'curl') is a software project that provides a library (libcurl) and a command...

cURL & php-curl installation in CentOS 7

We log in with the privileges of the root user and execute the following commands: yum install...

PHP automatic installation

Automatic installation of different PHP versions This script will allow you to manage different...

How to create a php.ini file

1. Log in to your cPanel account, go to the Files >> section of the File Manager menu. For...