title: Using CURL/PHP to download from FTP in chunks to save memory
body: <p>I am wanting to use this example:</p>
  
  <p><a href="https://stackoverflow.com/a/5830599">https://stackoverflow.com/a/5830599</a></p>
  
  <p>Pretty much for the very reason mentioned on this page.</p>
  
  <p>I'm trying to serve up larger files (100-200megs in general) and need to 'output' the data in chunks instead of it reading it all in memory with curl_exec(). My web host provider only allows me 64 megs of memory so I can't read that much information at once.</p>
  
  <p>Any suggestions here? Thanks in advance.</p>