Jump to content

[SOLVED] Fatal error: Allowed memory size of 8388608 bytes exhausted


prabhasgupte

Recommended Posts

I am using WAMP5 on Windows Vista.

 

I am writing a web crawler in PHP. My script loops through the links to crawl (fetched from MySQL database) and parses each web page for finding next to-crawl links.

 

Everything works fine for initial few number of links, and then suddenly my script exits with a fatal error.

The error message I get is:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 408 bytes) in C:\wamp\www\cybrevo\inarad\simple_html_dom.php on line 643

 

(I am using simple_html_dom.php script available on Internet to get list of hyperlinks.)

 

I am unable to fix up this problem.

 

If you know any remedy for this, please let me know. I am stuck with this problem.

If I run script in browser.. the problem is solved. :)

but if I run the same script on command prompt, I still get the error message. :(

 

Its OK for now to run from browser, but later I want to run this script as cron job. So, need to have some remedy for command prompt option.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.