小弟刚刚接触PHP,学习中遇到了一个问题
代码:
<html>
<head>
<title>first program</title>
</head>
<body>
<?
echo "Hello World";
include("123.txt");
?>
</body>
</html>
运行后提示
Hello World
Warning: include(123.txt) [function.include]: failed to open stream: Permission denied in /var/www/333.php on line 8
Warning: include() [function.include]: Failed opening '123.txt' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/333.php on line 8
123.txt 我也是放在/var/www下
如果吧/www权限改成了777,问题仍然存在。
搜索了google和baidu,依然不知道该怎么解决。请大家指教。
学习PHP,有如下错误
-
- 帖子: 8
- 注册时间: 2006-11-11 20:40
-
- 帖子: 8
- 注册时间: 2006-11-11 20:40