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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.