php包括问题 [英] php include problem

查看:146
本文介绍了php包括问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用浏览器加载驻留在/var/www/vhosts/mypage/httpdocs/index.php中的页面时,我得到一个包含错误,它不能包含在/ var / www / fw /中的文件trunk。



include path设置为include_path ='。:/ var / www / fw / trunk'。



<但是,当我尝试使用'php index.php'从控制台加载它时,它加载正常,我想这是一种许可问题,但我似乎无法找到什么和在哪里。

解决方案

我找到了一个解决方案,我必须将这个东西放入该虚拟主机的配置文件中:



php_admin_value safe_mode off



php_admin_value open_basedir none




When i try to load a page that resides in /var/www/vhosts/mypage/httpdocs/index.php using a browser I get an include error that it cannot include file which is in /var/www/fw/trunk.

include path is set to include_path='.:/var/www/fw/trunk'.

But when I try to load it from console using 'php index.php' it loads fine, i guess it some kind of a permission problem but I can't seem to find what and where.

解决方案

I found a solution, it was this thing I had to put in a config file for that virutal host:

php_admin_value safe_mode off

php_admin_value open_basedir none

这篇关于php包括问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆