Home  >  Article  >  Backend Development  >  Reason analysis: Reason analysis of php $_ENV being empty

Reason analysis: Reason analysis of php $_ENV being empty

WBOY
WBOYOriginal
2016-07-29 08:39:551568browse

But some friends' $_ENV is empty. The possible reasons are:
The variables_order value of your php.ini is "GPCS", which means that the order of the system when defining PHP predefined variables is GET, POST, COOKIES, SERVER , Environment(E) is not defined, you can modify the variables_order value of the php.ini file to the order you want, such as: "EGPCS". At this time, the value of $_ENV can be obtained
EGPCS value (EGPCS is the abbreviation of Environment, Get, Post, Cookies, Server - this is the full range of external variable sources in PHP)

The above has introduced the cause analysis of why php $_ENV is empty, including the cause analysis. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
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