Jump to content

Hard Question. PHP Download / Upload / Remote Mix


Monoxide

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.

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.