Home > Backend Development > PHP Tutorial > PHP区分生产环境 开发环境

PHP区分生产环境 开发环境

WBOY
Release: 2016-06-23 13:16:31
Original
1635 people have browsed it

修改nginx的fastcgi_params文件添加 fastcgi_param  RUN_ENVIRON      "product";PHP中通过$_SERVER['RUN_ENVIRON']或getenv('RUN_ENVIRON')来判断.
Copy after login

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