include_path 在 php 中工作正常,但在 .htaccess 中无法工作...什么给出了?
我刚刚将一些程序从一台服务器移动到另一台服务器。他们正在旧服务器上工作......(我知道它已加载,但从我看来它应该没有什么区别)。我查看了“类似标题”问题,但找不到类似这里发生的事情。我想使用 .htaccess 文件来设置此路径,就像我过去所做的那样。到目前为止,我在 PHP 中:
set_include_path('includes/');
echo get_include_path();
...在我的 htaccess 中我尝试过:
php_value include_path includes/
..and:
php_value include_path /srv/www/htdocs/teams/includes/
但是,无法让它与 .htaccess 文件一起使用。它可以与 .php 文件一起使用,但我希望它可以轻松地与 .htaccess 文件一起使用。
有什么想法或想法吗?
I just moved some programs from 1 server to another. They were working on the old server... (I know that's loaded, but from what I see it shouldn't make a difference). I've looked at the "similar titles" questions, but cannot find anything like what is happening here. I would like to use the .htaccess file to set this path like I've done in the past. So far I have in PHP:
set_include_path('includes/');
echo get_include_path();
...in my htaccess I have tried:
php_value include_path includes/
..and:
php_value include_path /srv/www/htdocs/teams/includes/
However, cannot get it to work with the .htaccess file. It works with the .php file, but i'd like it to work with the .htaccess file for ease.
Any thoughts or ideas?!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许您的 Apache 或 mod_php 设置不正确:
http://www.php。 net/manual/en/configuration.changes.php
另外,请确保当前工作目录
"."
位于包含路径中。Maybe your Apache or mod_php is not set up correctly:
http://www.php.net/manual/en/configuration.changes.php
Also, make sure that your current working directory
"."
is in the include path.