PHP.nl

phpinfo

phpinfo

Outputs information about PHP's configuration

true **phpinfo** int $flags

Outputs a large amount of information about the current state of PHP. This includes information about PHP compilation options and extensions, the PHP version, server information and environment (if compiled as a module), the PHP environment, OS version information, paths, master and local values of configuration options, HTTP headers, and the PHP License.

Because every system is setup differently, is commonly used to check and for available

on a given system. phpinfoconfiguration settingspredefined variables

is also a valuable debugging tool as it

contains all EGPCS (Environment, GET, POST, Cookie, Server) data. phpinfo

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

return.true.always

Voorbeeld: Example

<?php

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

// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);

?>

Opmerking: > In versions of PHP before 5.5, parts of the information displayed are disabled when the configuration setting is set to . This includes the PHP and Zend logos, and the credits. expose_phpoff

Opmerking: > outputs plain text instead of HTML when using the CLI mode. phpinfo

phpversion``phpcredits``ini_get``ini_set``get_loaded_extensionsPredefined Variables