By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,704 Members | 1,240 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,704 IT Pros & Developers. It's quick & easy.

Download Remote Files

P: 4
Hi again! I am going really desperate on this problem that I have in downloads.
Please somebody who have a better idea to solve things out, please help.

Just like I mentioned. I have a site that end users can download/upload video files.
The videos is stored in the same server as well as the php codes, though of course
in different directory. Everything goes well until I begun losing available space for new
uploaded videos. I had no choice but to moved other videos on a different server.
The big problem is how can I able to download the remote video files.

The function in the current site I am using is that I created a symlink($file_realpath, $file_symlink)
where $file_realpath = "/some/dir/"; then provided a a href="http://url/.$file_symlink./file"
that end user can Right-Click->'save target as...' to download the file. This is OK when
the video files is in the same server but how about the other video files in other server?

When I changed $file_realpath into "http://remote_add/some/dir/", its comes to a failure.
I already tried to used ftp_connect, ftp_chdir, before the <a href>, but it doesn't also help.

How can I able to get this remote files for download? Please anyone, any idea you have?

Many Thanks!
Jan 25 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.