当我在刮一个网站的时候,我能在10000个内容中找到4000个,它会停下来说
PHP警告: file_get_contents():文件名不能在第70行的/Users...simple_html_dom.php中为空,PHP致命错误:调用非对象上的成员函数find()
在simple_html_dom.php的第70行
$contents = file_get_contents($url, $use_include_path, $context, $offset);我想知道如何绕过这个空的文件名,然后继续继续完成这个过程?
发布于 2012-01-07 01:21:13
$contents = '';
if(!empty($url)) {
    $contents = file_get_contents($url, $use_include_path, $context, $offset);
}https://stackoverflow.com/questions/8766531
复制相似问题