php - Fatal error: Allowed memory size of 33554432 bytes exhausted -


this question has answer here:

$html = file_get_html('http://www.oddsshark.com/mlb/odds');  echo $html; 

when ehcoed, error message in title of question appears? i've had problems similar before. in cases, didn't need increase memoery in php.ini. rather, there missing curly bracket needed close loop. page i'm requesting via file_get_html function appears fine in browser, won't let me echo html via php.

any ideas?

why not use library more memory optimized, simple html dom not necessary longer:

$html = new domdocument; $html->loadhtmlfile('http://www.oddsshark.com/mlb/odds'); echo $html->savehtml(); 

more suggestions available reference question topic:


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -