php - Fatal error: Allowed memory size of 33554432 bytes exhausted -
this question has answer here:
- how parse , process html/xml in php? 27 answers
$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
Post a Comment