Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

m getting following error while executing following url



Fatal error: Allowed memory size of 50331648 bytes exhausted (tried to allocate 71 bytes) in in /home/vcodec9s/public_html/Scraping/test/simple_html_dom.php on line 827

share|improve this question

If the script is actually running out of memory, you may need to increase PHP's allotted amount. The setting for max memory is in the php.ini file -- look for memory_limit. You'll have to restart apache (or whatever web server you're using).

share|improve this answer
Yep. Give it more memory, and maybe try and figure out why your script is so memory-hungry. On the other hand, remember that it's PHP, and it's never gonna be that light on memory usage. – Tom O'Connor Oct 12 '10 at 23:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.