Re: ini_set('memory_limit', '16M')

From: Date: Wed, 28 Nov 2007 22:12:54 +0000
Subject: Re: ini_set('memory_limit', '16M')
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-265179@lists.php.net to get a copy of this message
On Nov 28, 2007 4:05 PM, George Pitcher <george.pitcher@ingenta.com> wrote: > 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 > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > http://php.he.net/manual/en/ini.core.php#ini.memory-limit Prior to PHP 5.2.1, in order to use this directive it had to be enabled at compile time by using -enable-memory-limit in the configure line.

« previous php.general (#265179) next »