Re: [PHP] scheduling a script to check a directory for files

2007-05-30 Thread Richard Lynch
On Wed, May 30, 2007 7:14 am, Bosky, Dave wrote: > I need to write a script to import '.csv' data files into MySQL. > > My question is how can I have a script execute and check a directory > every 4 hours for any '.csv' files and if it finds any calls a > function > to import them? Linux: man 5 cr

Re: [PHP] scheduling a script to check a directory for files

2007-05-30 Thread Marc Weber
> I need to write a script to import '.csv' data files into MySQL. > > My question is how can I have a script execute and check a directory > every 4 hours for any '.csv' files and if it finds any calls a function > to import them? On linux there is cron (you should find many example by googling)

Re: [PHP] scheduling a script to check a directory for files

2007-05-30 Thread Auto-Deppe, C. Haensel
On a *nix-box it's fairly simple when using cronjobs... maybe try that? - Original Message - From: "Bosky, Dave" <[EMAIL PROTECTED]> To: Sent: Wednesday, May 30, 2007 2:14 PM Subject: [PHP] scheduling a script to check a directory for files Greetings! I need

[PHP] scheduling a script to check a directory for files

2007-05-30 Thread Bosky, Dave
Greetings! I need to write a script to import '.csv' data files into MySQL. My question is how can I have a script execute and check a directory every 4 hours for any '.csv' files and if it finds any calls a function to import them? Thanks, Dave *