phpinfo();

To know the PHP configuration setup on a server, we’ll need to create a php file (Create new file in your File manager and save it as file_name.php) and save the below code snippet in the file.

<?php

// Show all information, defaults to INFO_ALL
phpinfo();

?>

The above code Outputs all the information about PHP’s configuration on the server.

If you only want the script to display available PHP modules on the server, you can make use of the following code instead:

<?php

// Show just the module information.
phpinfo(INFO_MODULES);

?>

You can refer this Official article for other phpinfo functions: php.net

/

Report (Please include link to post while reporting)

Leave a Reply

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