HTML解析使用file_get_html无法正常工作

时间:2017-04-21 22:09:37

标签: php simple-html-dom

<?php
 require_once('simple_html_dom.php'); 
 $fileName = '/Users/.../Documents/.../.../abcdef.html';
 echo file_get_html($fileName)->plaintext;
?>

当我用上面的代码运行php文件时,我没有得到任何内容。它只是空白。 我有simple_html_dom.php和文件在正确的路径上。 日志中也没有。我可以知道我错过了什么吗?

0 个答案:

没有答案