标签: 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和文件在正确的路径上。 日志中也没有。我可以知道我错过了什么吗?