Results 1 to 4 of 4
  1. #1
    ABW Ambassador writerguy's Avatar
    Join Date
    January 17th, 2005
    Springfield, Missouri, USA
    Huge Football Fanatic df is failing my script??
    I've got a PHP script pretty much exactly like the one Mobilebadboy originated in this now-famous script thread. In fact, it's basically just the script he gave us there, as modified with some help from Mr. Sal and others within that excellent thread.

    My problem is this: The Football Fanatics datafeed at SAS is currently around 76,000 items. When I run my script, I get this error message (I have replaced my SAS user login ID with XXXX):

    "Connected to successfully as XXXX.
    Downloaded /7124/7124.txt from as 7124
    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 44635150 bytes) in /home/gear/public_html/dfeeds/footballfantable.php on line 44"

    Anybody know what I might be able to do to modify the script so it doesn't require so much memory to handle that large df?

    I have it on a domain hosted on a VPS I have with KnownHost. Their support people say the current PHP configuration is set to limit each PHP script to 128M of memory (or is it Gigs? I always forget with servers -- whatever), and that increasing the amount of allowed memory might crash the server. The support guy said he optimized the Apache server by setting the following values:

    Timeout 100
    MaxRequestsPerChild 1000

    Anybody got a suggestion? A code snippet and how I might work it out? I'd be happy to take a PM if anyone would want to help me that way.
    Generate more fake news.

  2. #2
    ABW Ambassador Doug247's Avatar
    Join Date
    January 18th, 2005
    DE USA
    This is off the top but try to use the zipped/compressed file and use the php function the reads compressed files. I am pretty sure it can be done. If you are still having problems post it her and I'll check back this evening. Hope that helps.

  3. #3
    http and a telephoto
    Join Date
    January 18th, 2005
    I have luck changing the memory allotment for just the time that a script needs to run and when it's done set it back. Ask your tech guys the easiest way for you to do that.
    Deborah Carney

  4. #4
    ...and a Pirate's heart. Convergence's Avatar
    Join Date
    June 24th, 2005

    You should have plenty of memory allocated in your php.ini file - typically it's default is 128mb, more than enough for most functions.

    I suspect you have a small glitch in the script that is hanging up...

    Wish I could offer more...

  5. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Hello from a Sales Tax Fanatic
    By States-Sales-Tax in forum Introduce Yourself
    Replies: 2
    Last Post: July 20th, 2011, 01:06 AM
  2. Looking for a new Fanatic
    By Jason Rubacky in forum Job Postings
    Replies: 4
    Last Post: April 1st, 2009, 03:24 PM
  3. Looking for a script to load huge datafeed
    By MrSpeed in forum Programming / Datafeeds / Tools
    Replies: 5
    Last Post: September 7th, 2004, 02:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts