title: How can I read a big CSV file without Memory exhausted?
body: <p>I have a CSV file which is over 16 MB big.</p>
  
  <p>When I read it with this:</p>
  
  <pre><code>$exportString = @file_get_contents($url, false, stream_context_create($contextOptions)
  </code></pre>
  
  <p>I simply want to make an echo on:</p>
  
  <pre><code>$data=explode(';', $exportString);
  echo $data[0];
  </code></pre>
  
  <p>Then this message appears in my browser:</p>
  
  <pre><code>Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 71 bytes) in....
  </code></pre>
  
  <p>And after this, I want to import it in MySQL DB.</p>
  
  <p>Any help?</p>