Breaking News
Home / Web / PHP / PHP Snippets / How to display PHP setup and environment variables?

How to display PHP setup and environment variables?

In order to display PHP setup, configuration and environmental variables simply create a php page and execute the phpinfo command. It will display all the relevant information about PHP as output in the browser or in command line.

Ex. in info.jsp
<?php

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

 ?>

The output would look like this:

Php Info

[pb_builder]

Check Also

How to rename file in PHP?

If you want to rename a file in PHP you can use the rename function. …

Advertisment ad adsense adlogger