473,405 Members | 2,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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

nicebasic
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
2 3085
johny10151981
1,059 1GB
Try with fopen function
Mar 5 '12 #2
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

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

Similar topics

1
by: mbailey | last post by:
Hello- I have a Sql Server 2000 database offsite that I would like to back up to a local machine. I am using Enterprise Manager on a local machine to administer the remote db. Whats the best...
2
by: Bahman | last post by:
Hello! Sending email attachments works only if the file is on the server file system. So, I need to copy the local file to the server. Is there an easy way of doing this? Thank you!
5
by: Standist | last post by:
I want install software on PC in my local network. First I want copy file to the PC through default share like c$ or d$ on the PC. Then install the software through wmi. I have the administrator...
9
by: CGW | last post by:
I asked the question yesterday, but know better how to ask it, today: I'm trying to use the File.Copy method to copy a file from a client to server (.Net web app under IIS ). It looks to me that...
2
by: LiveCycle | last post by:
Hi, I'm writing a web service, and, as part of its function, I want it to copy a file from a remote server and place that file on the local web server under another name. However, I always get...
0
by: Bryan | last post by:
I am trying to link to a file on a local server for my company's intranet with the Web.sitemap so it can be downloaded from my menu. However, no matter how I word it, I always get...
6
by: mmccaws | last post by:
I understand that one can use FILE::REMOTE for SSH and SCP sessions. However I don't see how to apply the login password or the userID in the examples. Am I misreading the intent of the module? ...
5
by: chromis | last post by:
Hi there, This has probably been asked a million times but having looked through the PHP manual for the file_exists() function I can't seem to get the right code for what I want to do. I have a...
8
by: dexterrivera | last post by:
Hello All, I have been tasked with deploying Quest VAS in our environment and instead of manually copy the necessary license file to all the 300 MACs in our company so they can authenticate to AD...
1
code green
by: code green | last post by:
I have had 3 seperate procedures running happily for a couple of years that I now wish to merge into one. 1. Collect list of email addresses from Access on local server. Write these addresses to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.