RE: [PHP] ini_set('memory_limit', '16M')
| From: | George Pitcher | Date: | Wed, 28 Nov 2007 22:05:07 +0000 |
| Subject: | RE: [PHP] ini_set('memory_limit', '16M') | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-265177@lists.php.net to get a copy of this message | ||
Hi,
> On one script (pulling large amount of data from mysql) I'm getting error:
> "Fatal error: Allowed memory size of 16777216 bytes exhausted..."
> I put on the beginning of the page
> ini_set('memory_limit', '64M');
> but I'm still getting the same error message?!?
>
ini_set() returns the old value, so it might work if you assign the return
value:
$x = ini_set('memory_limit', '64M');
George