Why do some PHP installations have $_SERVER['SCRIPT_URI'] and others not?

后端 未结 3 474
孤城傲影
孤城傲影 2021-01-19 06:28

I run two Apache 2 servers. One has PHP5.2 and the other has PHP5.3. Is there a reason why on the 5.3 machine has $_SERVER[\'SCRIPT_URI\']?

Where does t

3条回答
  •  终归单人心
    2021-01-19 07:17

    As far as I know $_SERVER['SCRIPT_URI'] is only available if you're running PHP as a CGI. I suppose that must be the difference in your two PHP installations.

提交回复
热议问题