1
我无法获得php_value include_path
与XAMPP一起使用。它似乎应该是一个容易解决的问题,但一直在寻找和尝试几个小时。XAMPP问题:php_value include_path不工作
在Apache的/ XAMPP的httpd.cfg
中修改根目录就像一个魅力一样,但在.htaccess
文件中试图做同样的事情根本就没有。这是我的全.htaccess
文件(一切正常,除了这方面):
Options +FollowSymLinks -MultiViews
rewriteEngine on
RewriteBase/
## Hide .php extension by external redirection:
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC]
RewriteRule^%1 [R,NC]
## Internally redirect to .php extension:
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule^%{REQUEST_URI}.php
RewriteCond %{REQUEST_URI} !^/products/.*$
## Redirect to index when page is missing.
ErrorDocument 404 http://www.xxxxx.xxx
php_value include_path ".:D:/Applications/XAMPP/htdocs/project1"
我已经试过变化无穷:
".:D:\Applications\XAMPP\htdocs\project1"
.:D:/Applications/XAMPP/htdocs/project1
".:/project1"
而这一切的变化。我根本无法弄清楚。有任何建议吗?