hi, i have a script that pulls in a csv file and puts it in to a mysql database. I would like this process to be automated. So it pulls in the csv doc once every 20 mins.
Can anyone explain how i can do this usig php?
alternative method to cron job
Moderator: General Moderators
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: alternative method to cron job
Why can't you use cronjob? Taskscheduler is the equivalent on windoze.
Re: alternative method to cron job
sorry i dont know to much about cron job. I got the impression it can be slightly risky???
could you explain how cron job works?
could you explain how cron job works?
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: alternative method to cron job
I wouldn't consider it risky by any means. Using makeshift cron emulators are probably more risky than using cron itself.
Cron will execute a command based on the interval you set and/or time.
Cron will execute a command based on the interval you set and/or time.
Re: alternative method to cron job
ok, could you explain how i would go about setting up a cron job?
can i run this locally on my pc?
can i run this locally on my pc?
Re: alternative method to cron job
like jcart said
if you are in windows, use task scheduler
http://www.iopus.com/guides/winscheduler.htm
if you are in linux, use a cron job
if you are in windows, use task scheduler
http://www.iopus.com/guides/winscheduler.htm
if you are in linux, use a cron job