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

Reason analysis: Reason analysis of php $_ENV being empty

WBOY
Release: 2016-07-29 08:39:55
Original
1623 people have browsed it

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.

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