Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.