fatal error - ez_sql2.php

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
Biedubbeljoe
Forum Newbie
Posts: 1
Joined: Tue Sep 19, 2006 7:58 am

fatal error - ez_sql2.php

Post 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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Increase the memory limit, decrease the result set size, or some variation thereof.
hutspot
Forum Newbie
Posts: 2
Joined: Wed Sep 20, 2006 4:09 am

Post by hutspot »

OK thanx, but where can I increase the memory limit exactly? I can't find it.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Why did you register a second user?

http://php.net/ini.core#ini.memory-limit
hutspot
Forum Newbie
Posts: 2
Joined: Wed Sep 20, 2006 4:09 am

Post 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
Post Reply