Use Linux crontab to write PHP timing scripts in the thinkphp framework

不言
Release: 2023-03-23 12:34:02
Original
3093 people have browsed it

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!

Related labels:
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
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!