我正在尝试使用simple_html_dom.php 1.5版编写一个爬虫程序,但它似乎由于未知的原因泄漏了内存。我尝试了1.5,因为他们声称有修复内存泄漏的帮助将不胜感激。Allowed memory size of 268435456 bytes exhausted (tried to allocate 8388608 bytes) in C:\work\simple_html_dom.phpphp</e
我每天都在成功地使用PHP简单的HTMLDOM解析器。现在,我想从没有清晰标识符的页面中抓取文本,直到最低级别。= str_get_html($html); // create a htmlDOM object again
foreach($html->find('strong') as $e){ // search] =>