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