Allowed memory size of 33554432 bytes exhausted error occurred and the line that is the killer is mysql_fetch_assoc and the files are very very large (many thousands of rows).
I am moving servers and the new one is a standard server while the older one on another host (who lost a backup on me) used as much resources as I needed as long as certain metrics were not breeched. Well, there is a lot less memory available, so I have to think outside the box. I’m getting the ‘out of memory’ error in php. I know it can be fixed with the likes of ini_set(“memory_limit”,”64M”), but lets see if we can be more efficient – I am thinking that the above code – wasn’t. Continue reading