有关定时任务

WBOY
Release: 2016-07-06 13:53:56
Original
1186 people have browsed it

我想写一个能够在后台定时检索数据库,符合时间条件就发送信息。该如何做到?
(初学者,问题可能有些白痴,请耐心回答,谢谢)

回复内容:

我想写一个能够在后台定时检索数据库,符合时间条件就发送信息。该如何做到?
(初学者,问题可能有些白痴,请耐心回答,谢谢)

写个php的脚本 然后用linux的crontab定时执行 就行啦
如果你发短信这个地方想优化 可以用redis做个消息队列

使用Cron Job就可以了

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!