Home > Backend Development > PHP Problem > What does phpinfo mean?

What does phpinfo mean?

(*-*)浩
Release: 2023-02-26 07:56:02
Original
3017 people have browsed it

phpinfo is a running command to display the configuration information of the php server.

What does phpinfo mean?

phpinfo-Output a large amount of PHP information

Description (recommended learning: PHP video tutorial

bool  phpinfo()
Copy after login

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);
?>
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template