开发者

How to set php cron job?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜