title: fGetCsv only reading first line?
body: <p>I'm trying to use fgetCsv but for some reason it is only reading the first line. Here is the code:</p>
  
  <pre><code>$fieldseparator = ",";
  $lineseparator = "\r";
  
  
  if(!file_exists($csvFile)) {
      echo "&lt;div id='error'&gt;Cannot find uploaded file. Please try again&lt;/div&gt;";
      exit;
  }
  
  $file = fopen($csvFile,"r");
  
  if(!$file) {
      echo "&lt;div id='error'&gt;Error loading CSV file&lt;/div&gt;";
      exit;
  }
  
  $size = filesize($csvFile);
  if(!$size) {
      echo "&lt;div id='warning'&gt;File is empty&lt;/div&gt;";
      exit;
  }
  
  $query = "";
  $content = fgetcsv($file,$size,$lineseparator);
  
  
  fclose($file);
  
  foreach($content as $data) {
          $values = explode($fieldseparator,$data);
          $query[$i] = "('".implode("','",$values)."')";
  }
  </code></pre>
  
  <p>This just outputs one line. Here is the CSV file:</p>
  
  <pre><code>TSE-P01,1,WO47653897,RM,EcoQuiet,1
  TSE-P02,1,WO47653898,RM,EcoQuiet,1
  TSE-P03,1,WO47653899,RM,EcoQuiet,1
  TSE-P04,1,WO47653900,RM,EcoQuiet,1
  TSE-P05,1,WO47653901,RM,EcoQuiet,1
  TSE-P06,1,WO47653902,RM,EcoQuiet,1
  TSE-P07,1,WO47653903,RM,EcoQuiet,1
  TSE-P08,1,WO47653904,RM,EcoQuiet,1
  </code></pre>
  
  <p>Any ideas why this might be happening?</p>