Page 1 of 1

fatal error - ez_sql2.php

Posted: Tue Sep 19, 2006 8:11 am
by Biedubbeljoe
Hi,

I use a PHP script (ez_sql2.php) and get the following error, while loading a lot of pictures:

----------
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 65536 bytes) in /opt/lampp/htdocs/ez_sql2.php on line 216
----------

In ez_sql2.php is line 215 and 216:

----------
// Store results as an objects within main array
$this->last_result[$i] = $row;
----------

Is it possible to overcome this error?

Posted: Tue Sep 19, 2006 8:13 am
by feyd
Increase the memory limit, decrease the result set size, or some variation thereof.

Posted: Wed Sep 20, 2006 4:12 am
by hutspot
OK thanx, but where can I increase the memory limit exactly? I can't find it.

Posted: Wed Sep 20, 2006 6:09 am
by feyd
Why did you register a second user?

http://php.net/ini.core#ini.memory-limit

Posted: Wed Sep 20, 2006 6:19 am
by hutspot
Sorry, I'm a colleague of Biedubbeljoe, so I've created my own account.

I made a change in the php.ini file and now the error is gone

thanx. :D