Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

m getting following error while executing following url

URL

http://vcoders.in/Scraping/test/readData.php

Error

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
add comment

1 Answer

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).

http://www.php.net/manual/en/ini.core.php#ini.memory-limit

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
add comment

Your Answer

 
discard

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