老師求助wampserver開啟不了pathinfo
一:
在PHP安裝文件夾下找到PHP.INI,
;cgi.fix_pathinfo=1
之前的 ; 去掉,即改為
cgi.fix_pathinfo=1
二:
打開Apache安裝文件夾下的conf文件夾,找到httpd.conf文件中找到下面這段代碼
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
AcceptPathInfo On????//加入這行代碼就OK了
</Directory>
三:
在配置文件中加入
<Files *.php>
AcceptPathInfo On
</Files>
將前面的#去掉,改為:
LoadModule rewrite_module modules/mod_rewrite.so
這些方法 都試過了,還是不行
2015-07-13
默認(rèn)有,我是Apache2.4+php5.5,可能是打開方式不對:
假如你的有效地址是?http://localhost/phpinfo.php
輸入連接是?http://localhost/phpinfo.php/HELLO_THERE?
那么$_SERVER["PATH_INFO"] 會有值且
返回的是 ?/HELLO_THERE
參考原文: http://stackoverflow.com/questions/5629683/serverpath-info-and-serverorig-path-info-in-php
2015-04-20
你要修改的是PATHINFO的訪問模式嗎?