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

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

 



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


[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