{
ini_set("auto_detect_line_endings", true);
- $linecount = count(file($csv));
+
$fh = fopen($csv, 'r');
$cols = false;
- $processed = 0
+ $this->processed = 0;
+ $this->total = count(file($csv));
+ $this->echo = '';
while(false !== ($n = fgetcsv($fh,10000, ',', '"'))) {
if(!array_filter($n)){ // empty row