I have a PHP scripts that downloads and process some files. Sometimes the number of files is very large, so it takes some time.
But when there are a lot of files to proc
I actually stumbled across this problem doing a very similair thing, my problem (in case it helps anyone) was that I was creating an Object every time I called my function, ie:
function myFunction($param) {
...
// Create an object
$obj = new MyObject();
...
}
I simply changed it too:
function myFunction($param, $obj) {
...
//Do stuff with $obj
...
}
// Create an object
$obj = new MyObject();
// Call Function
$myresult = myFunction($params, $obj);
Noob I know but hope this helps someone else.