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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Nov 28, 2007 4:05 PM, George Pitcher <george.pitcher@xxxxxxxxxxx> 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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux