Hongmu Notes
PHPStudy 8.2 Extension Fix

PHPStudy 8.2 Extension Fix Program Notes PHP Hobbies

I don’t know what’s wrong with php. After opening the 8.2 version of php, the extension cannot be installed. When opening the php.ini configuration, there is nothing. All, find a piece of content, fill it in, and the problem will be solved. [PHP] engine = On short_open_tag = On precision = 14 output_buffering = 4096 zli…
👁 1
PHP Questionnaire Survey System

PHP Questionnaire Survey System Program Notes PHP Hobbies Practical Collection

Questionnaire System · Complete Tutorial 1. System Architecture Data Flow User Fills in Questionnaire (index.php) │ │ POST FormData ▼ .api.php ←── Receive + record environment information (IP/OS/browser/device/time) │ │ Write JSON ▼ data/submissions.json │ │ Read ▼ ad…
👁 6
Nginx blocks sensitive directories for security protection

Nginx blocks sensitive directories for security protection Summary of pitfalls

Cause: A few days ago, I added a backend management function to my blog, and added a new SQLite database directory Mdata and cache directory Mcache. After the function ran smoothly, an idea suddenly popped up: What would happen if I directly accessed https://domain name/Mdata/content.db? After trying it, the browser started downloading a file - the database file was completely exposed. It contains all the articles…
👁 16
PHP batch compression of images in the server

PHP batch compression of images in the server Language Notes PHP

Directly copy this entire section and execute cat > /www/wwwroot/blog2.1.4s5.cn/compress.php << 'EOF' <?php /** * WebP image batch compression script */ // ---- Increase memory ---- ini_set('memory_limit', '…
👁 11
Empire cms8.0 search list page supports dynamic php code display

Empire cms8.0 search list page supports dynamic php code display Program Notes Empire cms PHP Summary of pitfalls

Empire cms updated to 8.0. During daily use, I discovered that this search list page does not support dynamic php code display, so I modified the code and put it here. <?php require("../../class/connect.php"); require("../../data/dbcache/class.php");…
👁 85
Kakaka, one bug can be fixed in one day! <b>Fatal error</b>: Uncaught PDOException: SQLSTATE[HY093]: Invalid parameter number: parameter was not defined in

Kakaka, one bug can be fixed in one day! <b>Fatal error</b>: Uncaught PDOException: SQLSTATE[HY093]: Invalid parameter number: parameter was not defined in Summary of pitfalls

Regarding the problem of $stmt->execute($categoryIds); passing parameters. I'm really convinced. Just such a question has troubled me all afternoon! It wasn't until I went to look through the documents at night that I discovered that it was a problem with this thing. PDOException: SQLSTATE[HY093] error, the core reason is that the parameter placeholder in the SQL statement is different from the execu...
👁 74
PHP queries the MySQL database, obtains each table, and then outputs the first eight data of each table.

PHP queries the MySQL database, obtains each table, and then outputs the first eight data of each table. Language Notes PHP mySql

php code<?php /** * Export the table structure of the MySQL database and the first 8 data of each table * Data is in reverse order by id (if there is no id, it is in reverse order by primary key/first column) * Database: 111, username: 11111, password: 1111 */ $host = 'localhost'; $user = '1111'; $pa…
👁 56
In the Linux terminal, view the sizes of all files and subdirectories in the current directory and display them sorted by size.

In the Linux terminal, view the sizes of all files and subdirectories in the current directory and display them sorted by size. Summary of pitfalls

In the Linux terminal, view the size of all files and subdirectories in the current directory and display them sorted by size. Commonly used commands are: 1. Display the size of all files/directories (including hidden files) and sort du -sh .[!.]* * 2>/dev/null | sort -hrdu -sh: Count the size of each item (-s summary, -h human readable).[!.]* …
👁 94
How to make WordPress fly? I used SQLite to defeat Redis

How to make WordPress fly? I used SQLite to defeat Redis Program Notes Summary of pitfalls wordpress

My website runs on WordPress + Zibi theme. Zibi knows everything about this thing - login, membership, download permissions, QQ login, reply visibility...it is packed with functions, and the database needs to be checked dozens of times every time it is refreshed. So I wanted to simply transform it. The code has been put in place. https://github.com/1810216796/wordpress-sqlite-cach…
👁 92
How to enable error reporting in php?

How to enable error reporting in php? Summary of pitfalls

Simple and efficient method. Add the code directly. <?php error_reporting(E_ALL); ini_set('display_errors', 1); ini_set('display_startup_errors', 1); ?> Just add the following code at the very top of the erroring PHP file, for the current script only...
👁 84
1 2 3 315

🔥 Popular articles

Empire CMS smart label call field collection

Empire CMS smart label call field collection Program Notes Empire cms

Collect and classify all fields that support smart tag calls into Empire CMS smart tags: [e:loop={column ID/topic ID, number of items displayed, operation type, only display pictures with titles, additional SQL conditions, display sorting}] Template code content [/e:loop] Calling time: <?=date('m-d',$bqr[newstime])?> <?=dat…
👁 3748
Imperial cms imitation website tutorial corresponding notes

Imperial cms imitation website tutorial corresponding notes Program Notes Empire cms

Hello everyone, welcome to learn the imperial cms imitation website tutorial. I am Hong Mu qq1810216796 QQ exchange group: 9589723231 Imperial cms website installation. Hello everyone, welcome to learn the imperial cms imitation website tutorial. I am Hong Mu qq: 1810216796 qq exchange group: 958972323 Build an imperial program. If you have a server and have built an imperial website on the server, then...
👁 3412
Empire cms7.5 payment upgraded and optimized version of the library sample automatically generates word/PDF documents paid copy download with payment system member center whole site template source code sitemap Baidu push + installation tutorial 014

Empire cms7.5 payment upgraded and optimized version of the library sample automatically generates word/PDF documents paid copy download with payment system member center whole site template source code sitemap Baidu push + installation tutorial 014 Practical Collection empire template

This set of templates has a complete member center on mobile and PC. The member center template is also very good! By the way, there are also corresponding locomotive collection rules! Regarding installation, upload the direct installation version, install it directly, and then restore the data in the background. There is a view more on the mobile phone. If there is a problem, you can copy the view more code in index.js on the PC. If it has not taken effect yet, please check whether the js file renderings are referenced...
👁 2691