title: download a zip file from a url
body: <p>I wanna use php to download some zip files from a url. I.E. sitename.com/path/to/file/id/123 when you go to this url directly you get a file download prompt. I've tried to use <code>fopen()</code> and <code>file_get_contents()</code> but these fail. The search I've done comeback with how to make a zip file downloadable or how to get the file from sitename.com/path/to/file.zip but my url doesn't have a .zip extension.</p>
  
  <pre><code>fopen ('url.com') or die('can not open');
  </code></pre>
  
  <p>The browser shows can not open</p>