0

Fatal error: Out of memory (allocated 1310720) (tried to allocate 11109600 bytes) in

Reading though here and here .

I got this below from greg's answer

Of course this may reduce server performances as it takes ressources to kill and spaws new processes but at least it keeps the site working. You might be tempted to raise the number of running processes to keep performances high, be sure PHP (or apache) memory limit x max number of processes do not get over your server's physical ram.

and this below from ray's answer

memory_limit: 20000M

Currently I am using xampp as server in my local pc so I am assuming that i can cancel out the first answer because currently my ram is not that high as that of a server I am thinking that if I put this in server I might not get the error. I am considering to the second solution to change the memory_limit. Even if i change my memory_limit to 20000M I still get the problem. But after restating apache in xampp control panel its ok again but if try doing what i was doing before the error return.

What other solutions are best to solve Fatal error: Out of memory.

Community
  • 1
  • 1
Brownman Revival
  • 3,620
  • 9
  • 31
  • 69

1 Answers1

0

I access the links and read your php code.

I suggest to change the isolate functions to only one, with this structure:

Select the data
    insert into table destination
    generate the line of file

If your file is only to be read on the next function, you don't need to generate anymore.

Joao Polo
  • 2,153
  • 1
  • 17
  • 26