The content of this article is to use Linux crontab to write PHP timing scripts in the thinkphp framework. Friends in need can refer to
Just find the path of the curl tp framework in PHP. Then set this php to crontab
For example: the access address of tp is http://www.tp.com/index.php?m=admin&c=controller&a=action
Write a php, for example tpcrontab.php
The content is as follows:
Copy after login
Reference article: https://bbs.csdn.net/topics/390805964
net/qq_35979073/article/details/79352450
The above is the detailed content of Use Linux crontab to write PHP timing scripts in the thinkphp framework. For more information, please follow other related articles on the PHP Chinese website!