require_once()里的 permission denied问题
大家好啊~~
小弟在编一些php基础应用的时候在一部linux FC8上的apache运行出现了如下的问题~~
同时保存的/var/www/html里面的index.php和fns.php,而index.php的代码如下:
<?php
require_once( 'fns.php' );
?>
如果打开网页的话就会报错如下:
Warning:require_once(fns.php)[function.require_once]:failed to open stream: permission denied in
/var/www/html/fns.php on line 2
Fatal error:require_once()[function.require_once]:failed to openning required 'fns.php'
(include_path='.;/usr/share/pear;/usr/share/php')in /var/www/html/index.php on line 3
尝试把fns.php的权限改成0777,也试过把www和其下的子目录全部权限改称0777,但是仍然没有解决问题~~
也试过把require_once里面的路径改成绝对路径,但是仍然没有用~~~
请教高手这个php的权限问题是怎么引起的??怎么改才能弄好??