Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2004-09-22
7
227 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

839 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