include_path is not updated as specified in php.in

2019-08-05 10:14发布

I set up include_path in php.ini.

Then I call phpinfo()

And include_path differs from that I specified in php.ini.

What can cause this?

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.

I use Windows Vista, Apache/2.2.14 (Win32) PHP/5.3.1

I calls set_include_path("...") in the beginning of my php file, but this is good for temporary workaround only.

3条回答
smile是对你的礼貌
2楼-- · 2019-08-05 10:49

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>
查看更多
我欲成王,谁敢阻挡
3楼-- · 2019-08-05 10:50

you need to make sure that your include_path starts with ".:" .

查看更多
神经病院院长
4楼-- · 2019-08-05 10:51

Paste your include_path= entry from your php.ini. I know php.ini entries have to be on one line and you need to have your directories separated by colons, but otherwise theres no trick to it.

查看更多
登录 后发表回答