include_path未按照php.ini中的指定进行更新 [英] include_path is not updated as specified in php.ini
问题描述
我在php.ini中设置了include_path。
I set up include_path in php.ini.
然后我调用 phpinfo()
而 include_path
与我在 php.ini
中指定的不同。
And include_path
differs from that I specified in php.ini
.
是什么导致这种情况?
我修改了加载配置文件中指定的相同php.ini phpinfo()
致电。通过apache模块调用
php,我重新启动了apache - 这也没有帮助。
I modified the same php.ini as specified in "Loaded Configuration File" in phpinfo()
call.
php is called via apache module, I restarted apache - this also does not help.
我使用Windows Vista,Apache / 2.2.14(Win32)PHP /5.3.1
I use Windows Vista, Apache/2.2.14 (Win32) PHP/5.3.1
我在php文件的开头调用 set_include_path(...)
,但这仅适用于临时解决方法。
I calls set_include_path("...")
in the beginning of my php file, but this is good for temporary workaround only.
推荐答案
一种可能性是某个地方有一个.htaccess文件阻塞你的方式。您可以覆盖.htaccess文件中的php.ini设置。例如,在.htaccess中:
One possibility is that there's a .htaccess file somewhere that is getting in your way. You can override php.ini settings in .htaccess files. E.g, in your .htaccess:
php_value include_path <path>
这篇关于include_path未按照php.ini中的指定进行更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!