Jump to content

Recommended Posts

I'm looking for a PHP site or file or something that will download a remote file to the host it is on.

 

The best I can explain what I am trying to do is something like torrentflux does with torrent files, grabs the url and downloads the torrent right to my host. now I would just like to do that with FTP or HTTP saving me the time of downloading each file then uploading each file to my host.  :'(

 

 

edit: would there be a way to modify an upload script to download a file from another host?

You should be able to use most of the FileSystem functions to do this. fopen(), fread(), fwrite(). open the file read it to a buffer and write it to the host.

 

Here is the filesystem documentation:

http://www.php.net/manual/en/function.fopen.php

 

Other functions like readfile() might even work better.

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.