Jump to content

ERROR: php or sql?


rarebit

Recommended Posts

What's causing this error, php or mysql... if it's mysql then why does it not trip earlier? (e.g. on the query)

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 4 bytes) in monkey/db.php on line 418

...and line 418 is:

while ( $r = mysql_fetch_array($res) )

 

P.S. I know how to catch but would like to know where it's from!

Link to comment
https://forums.phpfreaks.com/topic/69683-error-php-or-sql/
Share on other sites

Hi there,

 

you should post in or describe what you are doing to get to this error.

 

without knowing what you are doing to get that error, I would suggest taking a look into your server settings.

It looks like your script is exceeding the max memory allotted.

 

ref: http://us3.php.net/manual/en/ini.core.php#ini.upload-max-filesize

 

good luck

Link to comment
https://forums.phpfreaks.com/topic/69683-error-php-or-sql/#findComment-350168
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.