Forum Moderators: phranque

Message Too Old, No Replies

Automatic download file via FTP

         

neboat

5:58 pm on Dec 28, 2007 (gmt 0)

10+ Year Member



Is there a program out there that I can install on a server which will automatically download a file via FTP daily? Preferably there is such a program but if not, can a PHP script be written to do the same job? Thanks in advance.

eelixduppy

6:00 pm on Dec 28, 2007 (gmt 0)



Hello and Welcome to WebamsterWorld!

>> can a PHP script be written to do the same job?

Yes, you can use the FTP Functions [php.net] and run a cron to do it daily.

neboat

6:07 pm on Dec 28, 2007 (gmt 0)

10+ Year Member



eelixduppy, thanks for the quick reply. I am using Apache on Windows, will I still be able to use cron?

eelixduppy

6:13 pm on Dec 28, 2007 (gmt 0)



Yes, except it's not called a "cron". You have to use the Task Scheduler. It's under programs > accessories > system tools