Running an intensive batch process in PHP, and avoiding memory exhaustion
The first step I would do is make sure everything is passed by reference.
Eg,
foreach ($ids as $id) {processData($data);}function processData(&$d){}
The first step I would do is make sure everything is passed by reference.
Eg,
foreach ($ids as $id) {processData($data);}function processData(&$d){}