【问题标题】:include_path working fine with php, but not working in .htaccess... what gives?include_path 可以在 php 中正常工作,但不能在 .htaccess 中工作……有什么用?
【发布时间】:2011-08-05 18:12:20
【问题描述】:

我刚刚将一些程序从一台服务器移动到另一台服务器。他们在旧服务器上工作......(我知道它已经加载,但从我看来它不应该有所作为)。我查看了“类似标题”的问题,但找不到像这里发生的任何事情。我想使用 .htaccess 文件来设置这个路径,就像我过去所做的那样。到目前为止,我在 PHP:

set_include_path('includes/');
echo get_include_path();

...在我的 htaccess 中我尝试过:

php_value include_path includes/

..和:

php_value include_path /srv/www/htdocs/teams/includes/

但是,它无法与 .htaccess 文件一起使用。它适用于 .php 文件,但为了方便起见,我希望它适用于 .htaccess 文件。

有什么想法或想法吗?!

【问题讨论】:

    标签: set-include-path


    【解决方案1】:

    可能你的 Apache 或 mod_php 设置不正确:

    http://www.php.net/manual/en/configuration.changes.php

    另外,请确保您当前的工作目录 "." 在包含路径中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-06-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-08-29
      • 1970-01-01
      相关资源
      最近更新 更多