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

PHP区分生产环境 开发环境

WBOY
WBOYOriginal
2016-06-23 13:16:311567browse

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

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