PHP

The phpinfo() function


The phpinfo() function example, phpinfo() flag parameters.

Display all the information related to PHP

Code examples to show the usage of the phpinfo() function and the flag parameters.

INFO_GENERAL = The configuration line, php.ini location, build date, Web Server, System and more.
INFO_CREDITS = PHP Credits. See also phpcredits().
INFO_CONFIGURATION = Current Local and Master values for PHP directives. See also ini_get().
INFO_MODULES = Loaded modules and their respective settings. See also get_loaded_extensions().
INFO_ENVIRONMENT = Environment Variable information that's also available in $_ENV.
INFO_VARIABLES = Shows all predefined variables from EGPCS (Environment, GET, POST, Cookie, Server).
INFO_LICENSE = PHP License information. See also the » license FAQ.
INFO_ALL = Shows all of the above.

// Usage example
<?php
phpinfo();

phpinfo(INFO_MODULES);

phpinfo(INFO_LICENSE);

phpinfo(INFO_CONFIGURATION);

phpinfo(INFO_VARIABLES); 
Reference URL

https://www.php.net/manual/en/function.phpinfo.php