开发者

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 tha开发者_JAVA技巧t 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().

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜