?
Solved

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

Posted on 2004-09-22
7
Medium Priority
?
241 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 500 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
The title says it all. Writing any type of PHP Application or API code that provides high throughput, while under a heavy load, seems to be an arcane art form (Black Magic). This article aims to provide some general guidelines for producing this typ…
Loops Section Overview
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses
Course of the Month16 days, 7 hours left to enroll

850 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