Auto detect internal/external development environment

后端 未结 5 637
清歌不尽
清歌不尽 2021-02-04 14:04

We use the following function to auto detect if we are on a machine internally or on a live server and then choose the appropriate configs for various components:



        
5条回答
  •  你的背包
    2021-02-04 14:36

    '127.0.0.1' == $_SERVER["REMOTE_ADDR"]
    

    This will never evaluate as TRUE on your live system. :)

提交回复
热议问题