title: Download image from a web (direct link) with PHP
body: <p>Hey, I've got a bunch of URLs in a .txt file, lets say:</p>
  
  <blockquote>
    <p>www.example.com/image1.png<br>
    www.example.com/image2.png<br>
    www.example.com/image3.png<br>
    www.example.com/image4.png<br>
    www.example.com/image5.png<br>
    ...<br>
    www.example.com/image900.png</p>
  </blockquote>
  
  <p>I want, with PHP, to read that list and save those images to a folder.<br>
  Reading that list line by line is easy, but I've got no idea how to save them to disk.</p>
  
  <p>Thanks!</p>