I am upto edit and upload a CSV with more then 50000 records (shopping cart produts). and it should update the number of tables in the system. So i m using zend framework with my shopping cart.
im planing to break them down (50000 CSV records) in memory before processing them batch-wise using PHP/MYSQL
please any one can give me advice on this
What im up to now is
public function getDataFromPath($path=null) {
if($path == null) {
$path = $this->_path;
}
ini_set("auto_detect_line_endings", 1);
$fp = fopen($path, "r");
while(($line = fgetcsv($fp, 5000, ",")) !== FALSE) {
$line = self::trimArray($line);
$this->data[] = $line;
}
fclose($fp);
return $this->data;
}
regards roshan