XAMPP问题:php_value include_path不工作



我不能让php_value include_path与XAMPP一起工作。这似乎是一个容易解决的问题,但我已经寻找和尝试了几个小时。

修改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:ApplicationsXAMPPhtdocsproject1"
.:D:/Applications/XAMPP/htdocs/project1
".:/project1"

以及它的所有变化。我就是想不明白。有人有什么建议吗?

在windows中,您使用;而不是:作为路径语句中的分隔符,所以请尝试

php_value include_path ".;D:/Applications/XAMPP/htdocs/project1"

最新更新