Skip to content

Instantly share code, notes, and snippets.

@kfriend
Created March 11, 2013 21:09
Show Gist options
  • Save kfriend/5137776 to your computer and use it in GitHub Desktop.
Save kfriend/5137776 to your computer and use it in GitHub Desktop.
Download a list of files from a location and save locally
<?php
// Where to save
$store = '';
// Files to download
$files = array(
'file',
);
foreach ($files as $file)
{
$contents = file_get_contents($file);
file_put_contents($store);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment