auto download zip files script
<p>I want to write a script that will download zip files from a given url and save it somewhere in my hard disk. URL looks like this. <a href="http://localhost/downloads/1" rel="nofollow">http://localhost/downloads/1</a> to <a href="http://localhost/downloads/1" rel="nofollow">http://localhost/downloads/1</a>. I am trying it like this</p>

<pre><code>&lt;?php
for($i=1;$i&lt;=100;$i++){
    $zipfile=file_get_contents('http://localhost/downloads'.$i);
    echo $zipfile;}
</code></pre>

<p>but it won't work.
I wanted to try this script on localhost. id will be downloading songs, pics for me.</p>
