Jump to content

Downloading to Server


Go to solution Solved by 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.

Edited by kicken

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?

  • Solution

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;
}
?>

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.