由于某种原因,该程序因zend_mm_heap错误而导致崩溃,并且还出现zend_hash_destroy()错误。有任何想法吗?关于这一点我在网上找不到多少,已经问过irc,他们也不知道。我确实阅读了关于此的其他主题,并尝试过这些工作,但对我来说没有任何作用。
<?
include('../simple_html_dom.php');
getAlluc();
function getAlluc(){
$url = 'http://www.alluc.org/';
$movieLinks = array();
$tvLinks = array();
$animeLinks = array();
$cartoonLinks = array();
$documentaryLinks = array();
$musicClipLinks = array();
$sportLinks = array();
$html = setPage($url."/movies.html");
foreach($html->find('a[class$=linklist_header]') as $movies){
$ml = str_replace("&","&",$movies->href);
echo $ml."\n";
array_push($movieLinks,$url.$ml);
}
//get actual movie links below
foreach($movieLinks as $letter){
echo $letter."\n";
$html = setPage($letter);
foreach($html->find('li.linklist2') as $li){
foreach($li->find('a[href]') as $href){
echo $href->href."\n".$href->plaintext."\n";
}
}
}
}
function setPage($url){
$html = new simple_html_dom();
$html->load_file($url);
return $html;
}
?>