title: Large size CSV file upload
body: <p>I want to know how to upload and retreive data from a large CSV or XLS file using PHP. Are there any available PHP libraries?</p>
  
  <p>I tried using the code mentioned below but it is taking a large amount of time to upload. Is the only way it can be done by using cron, or is there another method?</p>
  
  <pre><code>$file=fopen(base_url()."/xml/sample.csv","r");
  while(! feof($file))
  {
      pr(fgetcsv($file));
  }
  
  fclose($file);
  </code></pre>