I'm using simple_html_dom.php, and I'm trying to get some information of some pages. But I only get half of what I want, and I get this error:
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 24 bytes) in ../simple_html_dom.php on line 1560
The code:
<?
include('simple_html_dom.php');
$htmlconcurso[]=value;
$html2[]=value;
$holderdes[]=value;
$html = file_get_html("http://99designs.pt/logo-design/contests?show=finished");
foreach($html->find('a[class=preview]') as $aholder) {
$htmlconcurso=$aholder->href;
//echo $aholder->href .'<br>';
$html2=file_get_html($htmlconcurso);
foreach($html2->find('small[class=menu-item__label__count]') as $aholder) {
$holderdes=$aholder->outertext;
//echo $holderdes;
echo("<script>console.log('PHP: ".$holderdes."');</script>");
}
}
?>