rarebit Posted September 17, 2007 Share Posted September 17, 2007 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! Quote Link to comment https://forums.phpfreaks.com/topic/69683-error-php-or-sql/ Share on other sites More sharing options...
freakstyle Posted September 17, 2007 Share Posted September 17, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/69683-error-php-or-sql/#findComment-350168 Share on other sites More sharing options...
rarebit Posted September 17, 2007 Author Share Posted September 17, 2007 It happens when calling two pages which virtually just dump a table, at mo one has 28k entries, the other 22k. Each row in itself isn't very big, but i'd expect mysql to trip prior to this, but I like your suggestion of apache... Quote Link to comment https://forums.phpfreaks.com/topic/69683-error-php-or-sql/#findComment-350185 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.