Page 1 of 1
how to run a php code daily automatically?
Posted: Fri Mar 06, 2009 12:28 am
by yogi1982
Hi
I need to run a php code daily. How can I run this php code daily as the date changed automatically?
Thanks in advance
Re: how to run a php code daily automatically?
Posted: Fri Mar 06, 2009 12:36 am
by Benjamin
cron
Re: how to run a php code daily automatically?
Posted: Fri Mar 06, 2009 2:53 am
by yogi1982
But I heard cron for linux only? I need on windows.
Re: how to run a php code daily automatically?
Posted: Fri Mar 06, 2009 3:59 am
by php_east
yogi1982 wrote:But I heard cron for linux only? I need on windows.
windows->task scheduler would i think be what cron is to unix.
Re: how to run a php code daily automatically?
Posted: Mon Mar 16, 2009 1:40 am
by yogi1982
php_east wrote:yogi1982 wrote:But I heard cron for linux only? I need on windows.
windows->task scheduler would i think be what cron is to unix.
Will it also work when the system is shut down?
Re: how to run a php code daily automatically?
Posted: Mon Mar 16, 2009 5:10 am
by papa
The server needs to run of course.
Re: how to run a php code daily automatically?
Posted: Mon Mar 16, 2009 6:35 am
by Benjamin
yogi1982 wrote:php_east wrote:yogi1982 wrote:But I heard cron for linux only? I need on windows.
windows->task scheduler would i think be what cron is to unix.
Will it also work when the system is shut down?
Are you serious?
Re: how to run a php code daily automatically?
Posted: Tue Mar 17, 2009 12:01 am
by yogi1982
of course I am serious. the server will run always.
Actually I read about phplist and that will work even when your system is shut down. That's why I was asking same for task scheduler.
Re: how to run a php code daily automatically?
Posted: Tue Mar 17, 2009 12:03 am
by Benjamin
Well, I'm just saying, if the server isn't running, nothing is going to run, much less scheduled jobs.