Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- FTP downloads from server to user
- Sturnoff Megantic
February 26, 2005, 8:51 pm
rate this thread
I'm making a remote ftp client. I need to allow the user to download a
remote file from the server of his choice to his local machine, without
first downloading the file to my server (this wastes my bandwidth.)
So far the user can login to a ftp server of his choice, browse the
root dir and change to another dir and browse it.
I've tried ftp_getting a remote file, but ftp_get wants to download the
file to my server.
I've also tried a link like:
ftp://user:firstname.lastname@example.org/thedir/thefile.ext, but that does not
seem to work.
Is there any way to tell ftp_get to send the file directly to the
user's browser, or is there something that I am missing? Or.. is what
I'm trying to do impossible?
- Janwillem Borleffs
February 27, 2005, 7:21 pm
Re: FTP downloads from server to user
Sturnoff Megantic wrote:
Not without using your server as a buffer, because the script on your server
will have to retrieve the data and send it to the browser.
Sending the user name and password through an FTP link doesn't work anymore
in IE since the SP2 update of Windows XP. The only workaround would be to
provide a normal FTP link, which will render your application obsolete...