如何在服务器端安排执行PHP脚本的时间? [英] How to schedule the execution of a PHP script on the server side?

查看:50
本文介绍了如何在服务器端安排执行PHP脚本的时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个PHP脚本在特定时间自动执行.我将如何实现这一目标?

I need a PHP script to be automatically executed at a particular time. How would I achieve this aim?

推荐答案

如果您运行的是Linux/Unix(包括Mac OSX),请

If you're running a flavor of Linux/Unix (including Mac OSX), create a cron job.

如果您正在运行Windows,请创建计划的任务.

If you're running Windows, create a scheduled task.

注意:以上两个链接都专门针对PHP受众.

Note: both of the above links relate specifically to a PHP audience.

这篇关于如何在服务器端安排执行PHP脚本的时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆