I use the construction for read csv file (about 25000 lines) in my method update()
of my class
if(($handle = fopen($this->csv_url, 'r')) !== false) {
$row = 0;
while(($data = fgetcsv($handle)) !== false)
{
if ($row === 0) { $row++; continue; }
// Doing update a few meta in current product
// I detect product by sku
unset($data);
$row++;
}
fclose($handle);
}
Memory runs out on 3000 products. (250MB setup in php.ini file)
Does anyone have any ideas? Sorry for my English.