简体   繁体   中英

PHP wrong folder ? include_path='.:/usr/share/php:/usr/share/pear'

I need to install this feature on my webserver. this error message is looking for /usr/share/php COLON /usr/share/pear

my php installation rests in /usr/share/php5 , and I do not have a /usr/share/pear folder

What does colon mean in that syntax, "and"?

if the path is wrong I'm not sure how to change that in this script, I dont want to change the share/php5 to php , or is that recommended?

What does colon mean in that syntax, "and"?

Yes, something like that. Its the path separator and you can compare it with a comma ",".

if the path is wrong I'm not sure how to change that in this script, I dont want to change the share/php5 to php, or is that recommended?

You can change the value in the php.ini . You can find out, which configuration files are used with php --ini . Or you change it withing your script with

set_include_path(get_include_path() . PATH_SEPARATOR . '/usr/share/php5');

If this is a system-wide behaviour (means: PHP is not working probably at all), you should change it in the configuration. Its just for this one application, then you can use set_include_path() .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM