title: How download big file using PHP (low memory usage)
body: <p>I have to download big file (1xx MB) using PHP.</p>
  
  <p>How can i download this without wasting memory (RAM) for temporary file ?</p>
  
  <p>When i use </p>
  
  <pre><code>$something=file_get_contents('http://somehost.example/file.zip');
  file_put_contents($something,'myfile.zip');
  </code></pre>
  
  <p>I need to have so much memory that size of that file.</p>
  
  <p>Maybe it's possible to download it using any other way ?</p>
  
  <p>For example in parts (for example 1024b), write to disk, and download another part repeating until file will be fully downloaded ?</p>