小编Sht*_*ees的帖子

Linux/php需要父目录

我在Ubuntu 11.10上安装了apache服务器来托管我的本地网站,然后我从公司托管它.

我的网站根位置是"/ home/a1a4a/www /"

我在/home/a1a4a/www/account/account_info.php中有一个php文件"

我希望他在"/home/a1a4a/www/include/fg_membersite.php"中包含一个文件

这是我从account_info.php做的

require_once('./include/fg_membersite.php');
Run Code Online (Sandbox Code Playgroud)

我收到了这个错误

Warning: require_once(./include/fg_membersite.php): failed to open stream: No such file or directory in /home/a1a4a/www/account/account_info.php on line 10 Fatal error: require_once(): Failed opening required './include/fg_membersite.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/a1a4a/www/account/account_info.php on line 10 
Run Code Online (Sandbox Code Playgroud)

那我做错了什么?怎么修 .我有完全权限(sudo chown -R www-data).

谢谢,节日快乐:)

php linux apache directory

2
推荐指数
1
解决办法
4096
查看次数

标签 统计

apache ×1

directory ×1

linux ×1

php ×1