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

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

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:

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

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

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.