424,294 Members | 1,891 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,294 IT Pros & Developers. It's quick & easy.

How to Copy a File from Remote Server to Local Server?

nicebasic
P: 91
I'm new to PHP. To be honest, I know nothing about PHP.

I can only code in ASP Classic. Since my server runs on Linux, it cannot support ASP Classic. That's why I need a piece of code to copy a file from a remote server to my local server. I wonder if anyone can help me.

These are some links I found through googling:

http://lixlpixel.org/php_mirror/
http://www.phpsnaps.com/snaps/view/f...emote-servers/
http://snipplr.com/view/10306/
http://www.hotscripts.com/forums/php...onnection.html
http://www.barattalo.it/2010/01/16/c...rver-with-php/


A PHP file with a textbox in it. When you enter a URL in that textbox, the code starts fetching the remote file and copies it to a folder named "Grabbed" on the root of my local host. I think the path should be something like this:

Expand|Select|Wrap|Line Numbers
  1. /home/user/public_html/directory/Grabbed/
Any help will be appreciated.

Thank you in advance.
Mar 5 '12 #1
Share this Question
Share on Google+
2 Replies


100+
P: 1,059
Try with fopen function
Mar 5 '12 #2

nicebasic
P: 91
I know nothing about PHP. Of course, the above links give some examples, but none of them provide a File Transloader with Progress Bar.

Thank you for your attention.
Mar 5 '12 #3

Post your reply

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