Fatal error: Allowed memory size of ... exhausted

    Date: 11/08/07 (PHP Community)    Keywords: php, browser, google

    Are there any known issues with file() causing Fatal errors? A production script died on a scheduled file import this morning, it's crashing on this line:

    $lines = file($fullfilepath);

    • From the error log:
    • PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 72 bytes) in...

    If I access via a browser the script pops up a "save as" box with scriptname.php as the file to save. 

    The script works fine on similar test files. If I change to

    $blah = file_get_contents($fullfilepath);

    The script doesn't die.

    I looked around on google but keyword "file" turns up everything but what I need.

    Source: http://community.livejournal.com/php/595027.html

« DBA (db4) as cache before... || How to call standard PHP... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home