Home  >  Article  >  Backend Development  >  About scheduled tasks

About scheduled tasks

WBOY
WBOYOriginal
2016-07-06 13:53:561205browse

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

Statement:
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