Memory Allocation Error
| From: | heavyccasey at gmail dot com | Date: | Tue, 06 Nov 2007 07:35:00 +0000 |
| Subject: | Memory Allocation Error | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-264092@lists.php.net to get a copy of this message | ||
Hi!
I have a script that reads a 120 MB remote file. This raises a Memory
Allocation Error unless I use:
ini_set('memory_limit', '130M');
I doubt this is good for my server... I tried both fopen and
file_get_contents. This used to work fine in PHP 4 until I upgraded to
PHP 5.
Any ideas?
Thanks.