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

后端 未结 3 470
孤城傲影
孤城傲影 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:13

    According to a post on WebHostingTalk it comes from mod_rewrite:

    Add

    RewriteEngine On

    To the virtual host in your httpd.conf file that you want to turn this on for and then restart apache.

提交回复
热议问题