Identify development vs. production server in PHP

后端 未结 5 785
Happy的楠姐
Happy的楠姐 2020-12-08 15:20

I work with two application servers on a daily basis: one development, one production. A variety of apps from different developers live on these boxes, as well as some scrip

5条回答
  •  一个人的身影
    2020-12-08 15:29

    use an environment variable

    Just set an environment variable. It works on Windows and linux, they are even called the same thing now. Then just check $_ENV["DEVVSPROD"]

提交回复
热议问题