Login   Register  
PHP Classes

memory problems

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Split and merge files  >  All threads  >  memory problems  >  (Un) Subscribe thread alerts  
Subject:memory problems
Summary:Allowed memory size exhausted on large files
Author:e aposztrof
Date:2013-07-10 01:20:19
Update:2014-02-16 12:37:21

  1. memory problems   Reply   Report abuse  
Picture of e aposztrof
e aposztrof
2013-07-10 01:20:19
This is a great class, but please help me to solve the memory allocation problem. In example:
When i have a 16815544 bytes large file, and
ini_set('memory_limit', '8M');
applied, the result is:
Allowed memory size of 8388608 bytes exhausted (tried to allocate 7415129 bytes) in /split_merge.inc.php on line 40

  2. Re: memory problems   Reply   Report abuse  
Picture of Arash Hemmat
Arash Hemmat
2014-02-16 12:37:21 - In reply to message 1 from e aposztrof
Sorry i couldn't answer sooner, this class puts the file content in memory in spliting and mergin process so it won't be able to handle big files with a limited memory. The only solution is to increase the memory allocated to php. I can't think of any other solution for handling big files.