Download file from FTP and Update to MySql

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mandy515
Forum Newbie
Posts: 2
Joined: Thu Apr 16, 2009 11:48 pm

Download file from FTP and Update to MySql

Post by mandy515 »

Hey there,

I have to download file from an outside server every 5 minutes and put the data back into my database. I wanna know is there a way to do all these automatically sinceit's quite impossible to do it manually every 5 minutes.

Thanks
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Download file from FTP and Update to MySql

Post by Christopher »

On Unix system you could use cron to do this. Search for cron or crontab to get examples.
(#10850)
mandy515
Forum Newbie
Posts: 2
Joined: Thu Apr 16, 2009 11:48 pm

Re: Download file from FTP and Update to MySql

Post by mandy515 »

But Im not using Unix-based, but window-based. Is there a way to do it as well? Thanks
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Download file from FTP and Update to MySql

Post by Christopher »

I don't know, but I know how to find out:

http://www.google.com/search?hl=en&q=cr ... ron+in+win
(#10850)
Post Reply