简体   繁体   English

在树脂中,即使我更改了它,使用PHP的include_path指令也默认为/ usr / share / php?

[英]In resin, using PHP the include_path directive is defaulted to /usr/share/php , even though I changed it?

Here's the line as I added it in php.ini 这是我在php.ini中添加的行

include_path = "/usr/share/php/smarty:/usr/share/php5:/usr/share/php:/usr/share/php/pear"

I did echo "Include Path: ". get_include_path(); 我没有echo "Include Path: ". get_include_path(); echo "Include Path: ". get_include_path();

here's that output 这是输出

Include Path: .:/usr/share/php

I confirmed it using phpinfo() for the correct php.ini, but the path is not being updated. 我使用正确的php.ini的phpinfo()确认了它,但是未更新路径。

ed1: I even simplified the path to just 2 paths, still doesn't update. ed1:我什至将路径简化为2条路径,但仍然没有更新。 (I am restarting resin each time as well) (我也每次都重新启动树脂)

ed2: definitely the right file, if I change other settings and do a echo ini_get('display_errors') for instance, I can see it changes. ed2:绝对正确的文件,例如,如果我更改其他设置并执行echo ini_get('display_errors') ,我可以看到它已更改。 So, what's up with the include path? 那么,包含路径是怎么回事?

ed3: To make sure it's not a malformed uri or something, I used just 1 path, and it still doesn't work. ed3:为确保它不是格式错误的uri或其他内容,我只使用了1条路径,但仍然无法使用。

Thanks, 谢谢,

I found a duplicate question. 我发现一个重复的问题。

Cannot set global `include_path` in Quercus 无法在Quercus中设置全局`include_path`

So I voted to close this as a duplicate. 因此,我投票决定将其作为副本关闭。 But I'll leave this here in case someone else stumbles on it. 但是我将其留在这里,以防其他人偶然发现。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 PHP 文件夹错误? include_path='.:/usr/share/php:/usr/share/pear' - PHP wrong folder ? include_path='.:/usr/share/php:/usr/share/pear' 包含文件时出错(include_path ='。:/ usr / share / pear:/ usr / share / php') - Error including file (include_path='.:/usr/share/pear:/usr/share/php') “(include_path='.:/usr/share/pear:/usr/share/php')”是什么意思? - what does it mean “(include_path='.:/usr/share/pear:/usr/share/php')”? 在php 7 Ubuntu 16.04中的php.ini中include_path =“。:/ usr / share / php” - include_path = “.:/usr/share/php” in php.ini in php 7 Ubuntu 16.04 require():打开所需的'../vendor/autoload.php'失败(include_path ='。:/ usr / share / php') - require(): Failed opening required '../vendor/autoload.php' (include_path='.:/usr/share/php') php include_path='.:/opt/cpanel/ea-php70/root/usr/share/pear' cpanel 中的错误 - php include_path='.:/opt/cpanel/ea-php70/root/usr/share/pear' error in cpanel PHP 致命错误:require():无法打开所需的“template/header.phtml”(include_path='.:/usr/share/php') - PHP Fatal error: require(): Failed opening required 'template/header.phtml' (include_path='.:/usr/share/php') PHP 致命错误:require_once():打开所需的“Mail.php”失败(include_path='.:/usr/share/pear:/usr/share/php') - PHP Fatal error: require_once(): Failed opening required 'Mail.php' (include_path='.:/usr/share/pear:/usr/share/php') 在第0行上出现未知中的致命错误(include_path ='。:/ opt / alt / php54 / usr / share / pear:/ opt / alt / php54 / usr / share / php') - Fatal error (include_path='.:/opt/alt/php54/usr/share/pear:/opt/alt/php54/usr/share/php') in Unknown on line 0 未知:在第0行的未知中打开所需的'0ff'(include_path ='。:/ tmp:/ usr / lib / php:/ usr / local / lib / php')失败 - Unknown: Failed opening required '0ff' (include_path='.:/tmp:/usr/lib/php:/usr/local/lib/php') in Unknown on line 0
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM