Home > Backend Development > PHP Tutorial > About scheduled tasks

About scheduled tasks

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

I want to write a database that can be retrieved regularly in the background and send information when the time conditions are met. How to do it?
(Beginners may have some idiotic questions, please answer patiently, thank you)

Reply content:

I want to write a database that can be retrieved regularly in the background and send information when the time conditions are met. How to do it?
(Beginners may have some idiotic questions, please answer patiently, thank you)

Write a php script and then use Linux crontab to execute it regularly
If you want to optimize this place for sending text messages, you can use redis to create a message queue

Just use 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