Running an intensive batch process in PHP, and avoiding memory exhaustion Running an intensive batch process in PHP, and avoiding memory exhaustion json json

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){}

http://php.net/manual/en/language.references.pass.php