Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 275
CQM Avatar asked Jan 28 '26 16:01

CQM


1 Answers

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().

like image 97
KingCrunch Avatar answered Jan 30 '26 06:01

KingCrunch



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!