本文介绍了如何在服务器端安排执行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),请创建cron作业.
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脚本的时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!