Linux下require文件时报错,求高手 20
Warning:require_once(/var/www/html/php/file1.php):failedtoopenstream:Nosuchfileordire...
Warning: require_once(/var/www/html/php/file1.php): failed to open
stream: No such file or directory in /var/www/html/php/test.php on line 4
Fatal error: require_once(): Failed opening required
'/var/www/html/php/file1.php'
(include_path='.:/usr/share/pear:/usr/share/php') in
/var/www/html/php/test.php on line 4
求解 展开
stream: No such file or directory in /var/www/html/php/test.php on line 4
Fatal error: require_once(): Failed opening required
'/var/www/html/php/file1.php'
(include_path='.:/usr/share/pear:/usr/share/php') in
/var/www/html/php/test.php on line 4
求解 展开
2个回答
2013-03-07
展开全部
额,看看你那个函数是不是在打开文件处的代码写错了?要么,就是看看你那个文件的权值,如果是root用户所有,编译时还得加 sudo
追问
我直接用root账号进行编写的,文件权限也都是777最高权限了
追答
哦。要求你所编译的文件和file1.php都是root权限呢。你看看是不是呢?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询