Buying Help with PHP

Discussion in 'Programming' started by lhornaday, Jun 15, 2011.

  1. #1
    I am using simple_html_dom to fetch data from a website. I am getting this error:

    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 3145728 bytes) in...
    Code (markup):
    My script first grabs a product listing page and then does a foreach loop to get the contents of each product.

    I have a memory problem somewhere in the loop that I cannot find.

    Please help me find it and a solution. I will send my script and the simple_html_dom class.

    Note: I cannot turn up the memory limit but I don't think that is the really the problem.
     
    lhornaday, Jun 15, 2011 IP
  2. lhornaday

    lhornaday Active Member

    Messages:
    269
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    83
    As Seller:
    100% - 5
    As Buyer:
    100% - 4
    #2
    lhornaday, Jun 15, 2011 IP
  3. ColorWP.com

    ColorWP.com Notable Member

    Messages:
    3,120
    Likes Received:
    100
    Best Answers:
    1
    Trophy Points:
    270
    As Seller:
    100% - 3
    As Buyer:
    100% - 0
    #3
    ColorWP.com, Jun 16, 2011 IP