这是我在 php.ini 中添加的行
include_path = "/usr/share/php/smarty:/usr/share/php5:/usr/share/php:/usr/share/php/pear"
我确实回显“包含路径:”。 get_include_path();
这是输出
包含路径:.:/usr/share/php
我使用 phpinfo()
确认了正确的 php.ini,但路径并未更新。
ed1:我什至将路径简化为只有 2 条路径,但仍然没有更新。 (我每次都会重新启动树脂)
ed2:绝对是正确的文件,如果我更改其他设置并执行 echo ini_get('display_errors')
例如,我可以看到它发生变化。那么,包含路径是怎么回事?
ed3:为了确保它不是格式错误的 uri 或其他内容,我只使用了 1 个路径,但它仍然不起作用。
谢谢
最佳答案
关于php - 在树脂中,使用 PHP include_path 指令默认为/usr/share/php ,即使我更改了它?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20083540/