Possible Duplicate:
require_once() or die() not working另一个PHP require_once问题
我尝试包括与require_once一个文件,我得到:
Warning: require_once(1) [function.require-once]: failed to open stream: No such file or directory in /var/www/phpscrape/index.php on line 3
Fatal error: require_once() [function.require]: Failed opening required '1' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/phpscrape/index.php on line 3 I can do a cat /var/www/phpscrape/simplehtmldom/simple_html_dom.php which means the path is correct.
的权限是WWW的数据:WWW的数据一样正在执行的index.php。可以肯定,我也设置了chmod 777,但是这也没有帮助。
的命令行是:
<? php
require_once("/var/www/phpscrape/simplehtmldom/simple_html_dom.php") or die("no such file");
这可能是重复的。 – Gumbo 2010-09-13 11:59:52