I have 2 files that I need to get on my server one is 600 megs the other is 1.4 gigs and the files are on a http site not ftp. How can i get php to download and save the files without me passing them?
if this were ftp I know how to do it but the http is giving me a problem with file_get_contents
this is what I have and isn't working:
//----------------------------------------------------------------------
set_time_limit(1200);
$url = "http://images.shopdbl.com/zips/medium.zip";
$zip_file = file_get_contents($url);
$ourFileHandle = fopen($ourFileName, 'w') or die("can't open file");
fwrite($ourFileHandle, $zip_file);
fclose($ourFileHandle);
//-----------------------------------------------------------------------
I'm not getting any errors and its stopping before the time set.