General Community > Chit Chat

FTP Download Script?

(1/1)

Iomega0318:
I have a question, I asked on Yahoo Answers but so far nothing and it's been over a week.. anyways.. you know how SMF can connect to a link and use your hosts connection to download a package using the package manager? At least I assume that's how it does it lol.. is there a script out there somewhere that does the same thing with larger files?

I host a few files for a friend and he continually updates them, however the upload to my host is capped at 25.5KB/s and I have e-mailed them and they sent me an automated reply, needless to say they aren't going to fix it.. these files are around 500MB each and uploading them takes FOREVER lol.. I would much rather use my hosts I'm sure Multi Gigabit connection and just download them straight to the server.. anyways, any insight you could provide would be great thank you.

Jezreel5:
Well, the fact that this runs every 5 days must be because you set up the Task incorrectly in the task scheduler.

But as for downloading the latest file: If possible, how about simply renaming the file you download after downloading it? I do that in some code of mine: I look in a directory for ".txt" files and, when I find one, I first process it and then rename it to ".processed".

But of course another alternative would be to get the list of files on the FTP server and compare it to the list of files you have already downloaded (either by looking in a directory or by keeping track in a DB) and then simply don't ever download any file you have already downloaded.

Iomega0318:

--- Quote from: Jezreel5 on May 13, 2012, 05:16:22 PM ---Well, the fact that this runs every 5 days must be because you set up the Task incorrectly in the task scheduler.

But as for downloading the latest file: If possible, how about simply renaming the file you download after downloading it? I do that in some code of mine: I look in a directory for ".txt" files and, when I find one, I first process it and then rename it to ".processed".

But of course another alternative would be to get the list of files on the FTP server and compare it to the list of files you have already downloaded (either by looking in a directory or by keeping track in a DB) and then simply don't ever download any file you have already downloaded.

--- End quote ---
umm spam lol?

Runic:
looks like it ... hope you dont mind i removed the spam link in your quote and the post your quoted.

for your question here is an easy one:

http://davidwalsh.name/send-files-ftp-php

Iomega0318:

--- Quote from: Runic on May 13, 2012, 07:54:07 PM ---looks like it ... hope you dont mind i removed the spam link in your quote and the post your quoted.

--- End quote ---
Oh not at all, I was thinking I should have removed it but forgot lol..

Navigation

[0] Message Index

Go to full version