Download html/pdf files using php
<p>I am working on a PHP downloader.
I am given a bunch of links to either pdf or html files, and I am supposed to download and rename them into a folder. 
How should I approach the problem? </p>
