Excel Reader Class - Causing issue with memory allocation Allowed Memory Size of 134217728 Bytes Exhausted |
[eluser]Unknown[/eluser]
I have an application which: 1. Take as upload a Excel file [Single file at a time] 2. Parses it , gets the data 3. Inserts it into the database. It didn't cause any problem earlier on 1-2 months. But now its showing Fatal error: Allowed memory size of X bytes exhausted (tried to allocate Y bytes) When I increase the memory size to X bytes using ini_set("memory_limit","XM"); The errors disappears for some time. It comes back again with a higher number than X. Fatal error: Allowed memory size of X+y bytes exhausted I could do ini_set('memory_limit', '-1'); But I dont think its a proper solution. Anybody have a solution to the above? Is it caused by the Excel reader class in codeigniter. This is what I get in error_log Code: PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 24 bytes) in basepath/system/database/drivers/mysql/mysql_result.php on line 167 This is what I used. Excel reader class
|
Welcome Guest, Not a member yet? Register Sign In |