Reputation: 708
I have written a Script in PHP which takes 2+ Hour to Execute Completely, Actually I am scrapping a Website completely.
I have used PHP Laravel 5.0 Framework to write that Script, even after ini_set("memory_limit",-1), I am getting same Out Of Memory Error.
My RDP have 1 GB RAM, Is there ANY WAY TO PERMANENTLY FIX THIS? In my PHP.ini, I have also increased the limit still it says :(
Upvotes: 0
Views: 1967
Reputation: 852
Unset any arrays/objects you might use during your script running time. This is most probably the case, you're extracting a lot of data and once you compute whatever you need to compute, you don't "free" the memory
Upvotes: 1