Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

phpinfo

Description

The phpinfo of Options / Information for PHP outputs information about PHP's configuration.

Syntax

phpinfo(
    int $flags = INFO_ALL
): true

Parameters

flags

The output may be customized by passing one or more of the following constants bitwise values summed together in the optional flags parameter. One can also combine the respective constants or bitwise values together with the bitwise or operator.

ConstantValueDescription
INFO_GENERAL1The configuration line, php.ini location, build date, Web Server, System and more.
INFO_CREDITS2PHP Credits. See also phpcredits().
INFO_CONFIGURATION4Current Local and Master values for PHP directives. See also ini_get().
INFO_MODULES8Loaded modules and their respective settings. See also get_loaded_extensions().
INFO_ENVIRONMENT16Environment Variable information that's also available in $_ENV.
INFO_VARIABLES32Shows all predefined variables from EGPCS (Environment, GET, POST, Cookie, Server).
INFO_LICENSE64PHP License information.
INFO_ALL-1Shows all of the above.

Return

Always returns true.

Examples

1 · void

<?

phpinfo();

?>

2 · flags · INFO_GENERAL

<?

$flags = INFO_GENERAL;

phpinfo($flags);

?>

3 · flags · INFO_CREDITS

<?

$flags = INFO_CREDITS;

phpinfo($flags);

?>

4 · flags · INFO_CONFIGURATION

<?

$flags = INFO_CONFIGURATION;

phpinfo($flags);

?>

5 · flags · INFO_MODULES

<?

$flags = INFO_MODULES;

phpinfo($flags);

?>

6 · flags · INFO_ENVIRONMENT

<?

$flags = INFO_ENVIRONMENT;

phpinfo($flags);

?>

7 · flags · INFO_VARIABLES

<?

$flags = INFO_VARIABLES;

phpinfo($flags);

?>

8 · flags · INFO_LICENSE

<?

$flags = INFO_LICENSE;

phpinfo($flags);

?>

9 · flags · INFO_ALL

<?

$flags = INFO_ALL;

phpinfo($flags);

?>

10 · return

<?

$return = phpinfo();

var_export($return);

?>
HomeMenu