Welcome Guest, Not a member yet? Register   Sign In
Problem using large files with phpExcel library...
#1

[eluser]cdbrkpnt[/eluser]
hi all,
i am building an reporting application , where user uploads the Excel file and i need to store the report data in to db , every things has gone fine before ,
but now when i tried to upload large files say 12mb files ,

i got an error saying ...
Allowed memory size of 67108864 bytes exhausted (tried to allocate 65011713 bytes)

i tried to change the memory more but the error repeated accordingly ....



please let me know how can i fix this large file issue ....

Looking forward for any suggestions ....
#2

[eluser]eoinmcg[/eluser]
How are you trying to change the memory limit?

does this work?

Code:
echo 'Default: '.ini_get("memory_limit").'<br />';
ini_set("memory_limit", "200M");
echo 'Changed: '.ini_get("memory_limit");
#3

[eluser]Derek Allard[/eluser]
That's a massive file, and it could be that PHP simply can't handle a 12mb conversion. That's a lot of memory, but if you can talk your host into bumping it high enough, that message will go away.

You might want to re-think your application's logic if you need to upload and convert 12mb files... that might just be too much.

(moved into application development)




Theme © iAndrew 2016 - Forum software by © MyBB