duanjiu1894 2012-05-08 18:02
浏览 38
已采纳

PHP Cronjob在Windows 7中

Hye alls.. this is my code that cronjob will do..

$query = "UPDATE program SET status_penilaian = 1  WHERE tarikh_buka = CURDATE()";
$hasil = mysql_query($query);

question is.. how to setting to cronjob this php file in task schedule?

i'm using PHP Version 5.2.8

  • 写回答

1条回答 默认 最新

  • douzhantanju1849 2012-05-08 18:10
    关注

    Did you do your own research?

    You can do this straight in MySQL by creating an event

    OR

    Use PyCron, there has been some good success using this in Windows

    OR

    The first listing in google came up with this:

    http://lists.mysql.com/eventum-users/1342

    1. Use Windows Schedule Task. (not that good)

    2. Use a web based service: a. http://www.cronjobs.org (ok but anything above 13 minutes and you have to pay - very small amounts but it does work)

          b. http://www.webcron.org (ok but limited to running cron jobs at hourly intervals as the minimum)
      
    3. Visualcron (http://www.visualcron.com/) GUI windows app - ok but I found it difficult to get it work properly. Support non-existent - never received emails to my queries. You may have better luck.

    4. CRONw - (http://cronw.sourceforge.net/ & http://sourceforge.net/projects/cronw/) Excellent - works and is configured like a cron job on Unix. No Windows installer yet but will be released in v2.1. Requires PERL to be installed (recommend ActiveStates Perl install).

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥30 YOLO检测微调结果p为1
  • ¥20 求快手直播间榜单匿名采集ID用户名简单能学会的
  • ¥15 DS18B20内部ADC模数转换器
  • ¥15 做个有关计算的小程序
  • ¥15 MPI读取tif文件无法正常给各进程分配路径
  • ¥15 如何用MATLAB实现以下三个公式(有相互嵌套)
  • ¥30 关于#算法#的问题:运用EViews第九版本进行一系列计量经济学的时间数列数据回归分析预测问题 求各位帮我解答一下
  • ¥15 setInterval 页面闪烁,怎么解决
  • ¥15 如何让企业微信机器人实现消息汇总整合
  • ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题