Jump to content

Downloading to Server


phpcoder2013

Recommended Posts

If you initiate a download on a server, it would use that server's internet connection, not your personal internet connection. Unless your server happens to use the same personal connection (ie, a server at your house) that is.

 

Is there a script I need to use or is there a button on the webserver?

Never mind, the following script only minimally uses my internet connection

 

 

 

$file = 'http://ferrebeekeeper.files.wordpress.com/2012/12/m104_ngc4594_sombrero_galaxy_hi-res.jpg';
$newfile = 'Image.jpg';

if (!copy($file, $newfile)) {
echo "failed to copy $file...\n";
}
else
{
echo $file . ' has been successfully copied to ' . $newfile;
}
?>

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.