Solved

How to transfer files from a URL or FTP server to my own server?

Posted on 2004-09-22
7
223 Views
Last Modified: 2010-03-04
Hi,
I want to offer 20GB of downloads on my site, but in order to do so, that 20GB needs to be transfered to the server somehow. It will take years to do it using my internet connection, so I was hoping that there would be a way to make my server download the files directly. If anyone knows how I can do this, I would be very grateful if they could help me out.

thanks.
0
Comment
Question by:spikeyjames
  • 3
  • 3
7 Comments
 
LVL 15

Expert Comment

by:periwinkle
ID: 12123260
To move the files from your location to the server, you will need to upload it to the server via FTP.  Even if people were to download it directly from your computer, they would be using your slow internet connection.
0
 
LVL 38

Accepted Solution

by:
yuzh earned 125 total points
ID: 12130036
Use wget or FTP to load the files into your server, if you only have modem connetion forget
about it, it will take ages to complete.

Have a look at the following page to learn how to use wget:
http://linux.math.tifr.res.in/manuals/html/wget/wget_7.html
0
 
LVL 1

Author Comment

by:spikeyjames
ID: 12130950
Sorry, I dont think I explained it properly. The server is not connected via my internet connection. It is a dedicated server hosted by a hosting company. I have a 512k ADSL connection, but the upload for it is only 128k which means that it will take hours and hours to add 20GB of files to the server.

yuzh may have the solution, I'll check out wget now. I'm not sure about FTP, doesn't that require me to download and upload the files myself?

thanks.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 38

Expert Comment

by:yuzh
ID: 12131123
You can write a script and use cron to run the script, have a look at my script in
the following page and modify it to your need:

http:Q_21057930.html#11546547


also have a look at: (download + docs)

http://www.gnu.org/software/wget/wget.html
0
 
LVL 1

Author Comment

by:spikeyjames
ID: 12131221
Thanks again, you've been a lot of help.

I'm not sure if I should ask this here, or in a new thread, but is there a way of using wget through a php script?

I'm not sure how to implement the script that you gave me.
0
 
LVL 38

Expert Comment

by:yuzh
ID: 12131383
Do you mean use php to call wget, it should not be a problem, you can do it with almost any
type of shell script.

In your php script, all you need to do is to treat wget as a normal *nix command, and make
sure that you use FULL path.

If you are not sure what to do, post a question in php TA, someone will write one for you.

Cheers!
0
 
LVL 1

Author Comment

by:spikeyjames
ID: 12131395
Thanks very much!
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
maven set up 2 142
erroer in installing php7.0.7 on an apache 2 machine 4 132
Guacamole and browser performance 1 82
Can't connect to WAMP server 5 49
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question