在Windows Server 2003中设置cronjob/计划任务? Php& mysql

发布于 2024-08-16 10:01:45 字数 246 浏览 4 评论 0原文

我想设置一个计划任务/cron 作业来更新数据库。我计划使用 php 脚本更新数据库,即连接到数据库并执行 SELECT 和 UPDATE 查询。我已经准备好了 php 脚本,接下来该怎么办?

我(我的服务器)正在使用Windows Server 2003、IIS、php和mysql。

当我用谷歌搜索这个时,我得到了大量的结果,这让我很困惑。有没有关于我应该做什么(一步一步)的快速解释?

(请告诉我您还需要了解哪些其他信息)

I would like to set a scheduled task/cron job to update database. I planning updating the database using a php script, i.e connect to database and execute SELECT and UPDATE query. I already prepared the php script, and what should I do next?

I am (my server) is using Windows Server 2003, IIS, php and mysql.

When I google this, I got tons of results, and its confusing me. Is there any quick explanation of what should I do (step-by-step)?

(Please let me know what are the others information you need to know)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

污味仙女 2024-08-23 10:01:45

在Windows计划任务中,定义一个下载文件的任务(http://127.0.0.1/autotask.php) php)每天(或分钟)

然后将代码放入 autotask.php

In windows schedule task, define a task to download a file(http://127.0.0.1/autotask.php) every day (or minute)

then put your code in autotask.php

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文