php setincludepath,PHP set_include_path配置

我遇到了set_include_path的问题,我读了很多关于这个问题的消息,但没有一个对我有用.

我在Debian上,我的根目录将设置为/ home / project /

所以我尝试了这4种不同的东西:

ini_set("include_path", '/home/project');

ini_set("include_path", '.:/home/project');

set_include_path('.:/home/project');

set_include_path('/home/project');

set_include_path(get_include_path().PATH_SEPARATOR.'/home/project');

但没有一个…当我做回声get_include_path();每次看起来都不错.

但是第四种方法在我的计算机上与WAMP完美配合.

所有这些错误信息:

Warning: include(/config/config.php) [function.include]: failed to open stream: No such file or directory in /home/project/web/www.project.com/index.php on line 3

Warning: include() [function.include]: Failed opening '/config/config.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear:/home/project') in /home/project/web/www.project.com/index.php on line 3

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值