phpinfo is a running command to display the configuration information of the php server.
phpinfo-Output a large amount of PHP information
Description (recommended learning:PHP video tutorial)
bool phpinfo()
Outputs a large amount of information about the current status of PHP, including PHP compilation options, enabled extensions, PHP version, server information and environment variables (if compiled as a module), PHP environment variables, Operating system version information, path variables, local and primary values of configuration options, HTTP headers and PHP authorization information (License).
Because each system is installed differently, phpinfo() is often used to check configuration settings and predefined variables on the system.
phpinfo() is also a valuable debugging tool that contains all EGPCS (Environment, GET, POST, Cookie, Server) data.
Example:
Note:When the Exposure_php configuration setting is set to off, some of the information displayed will be disabled. This includes PHP and Zend logos, as well as points.
Note:When using CLI mode, phpinfo() outputs plain text instead of HTML.
The above is the detailed content of What does phpinfo mean?. For more information, please follow other related articles on the PHP Chinese website!