Solved

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

Posted on 2004-09-22
7
220 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 38

Expert Comment

by:yuzh
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks very much!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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). #…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now