Home >Backend Development >PHP Problem >What does phpinfo mean?
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:
<?php // 显示所有信息,默认为INFO_ALL phpinfo(); // 仅显示模块信息。 // phpinfo(8)产生相同的结果。 phpinfo(INFO_MODULES); ?>
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!