Quantcast
Channel: Developer Feed - Snippet
Viewing all articles
Browse latest Browse all 178

How to display PHP setup and environment variables?

$
0
0

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:

read more


Viewing all articles
Browse latest Browse all 178

Trending Articles