This article is introduced by the tutorial column of Pagoda Panel on how to implement regular execution of PHP to operate the database in Pagoda shell. I hope it will be helpful to you if you need it!
Want to use Pagoda shell to clear database data regularly
1. Create these two files in any location
2. Customize the sql you want to execute in the jrsy.php file and operate the database
<?php $link = mysqli_connect("localhost","数据库用户名","数据库密码","数据库名称") or die("Error " . mysqli_error($link)); //连接,test为数据库的名称 $query = "UPDATE yh_business SET calltoday=0" or die("Error in the consult.." . mysqli_error($link));//查询 $result = mysqli_query($link, $query);//查询的结果 echo '清空今日调用' ?>
2. Write the shell in jrsy.sh to execute jrsy.php
#/ php /www/wwwroot/jx.kissxx.cn/public/jrsy.php
3. Specify the sh path to be executed in the shell script scheduled task
, and it will be ok.
The above is the detailed content of How to execute timing in Pagoda shell (detailed explanation of steps). For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

SublimeText3 English version
Recommended: Win version, supports code prompts!

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),
