开发者

How to set php cron job?

开发者 https://www.devze.com 2022-12-08 19:05 出处:网络
I am using windows server 2003. I set a cron j开发者_如何转开发ob, open IE explorer and run cron.php file.

I am using windows server 2003.

I set a cron j开发者_如何转开发ob, open IE explorer and run cron.php file.

Basically, what the cron.php does is just send email to my own email address. I set it run every 2 minutes and run for 2 hours. I start the cron services, and I received the first email, but after that, I waited few hours, I am still didn't receive the second email. Anyone can help me?


It's probably due to the fact that CRON doesn't run on WINDOWS unless you install a CRON for Windows like CRONw or such like programs. If that's not an option I think you would need to set up your script to use Scheduled Tasks and follow something like this.

Hope this helps

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号