Results for “PHP”

Replace the Default PHPCMS CKEditor with KindEditor

Recently while studying phpcms, I found the default editor not very user-friendly. I personally don’t prefer CKEditor; I like the domestic lightweight KindEditor more. After researching, I decided to replace it. Tested successfully with local UTF-8, GBK not tested. Anyone interested can give it a try – the method is the same! Let me show the effect first

PHPCMS V9 Static HTML Generation Settings and URL Rule Optimization

Recently, a client asked specifically about how to configure static and pseudo-static URLs in PHPCMS V9 during website optimization. CMSYOU recalled having previously shared “PHPCMS Custom URL Rule Techniques,” but that was only the theory. Today, here we are sharing practical step-by-step instructions from a user’s perspective…

How to Call Discuz!X Forum Data from PHPCMS v9

After about a month of exploring PHPCMS v9, I have a general understanding of its features. Before building the site, I planned to integrate DZ X1.5. I found methods for synchronization in forums, but got little help on calling forum posts – probably because it’s too simple for anyone to write about. So I’ll organize it here

Using Memcache in PHPCMS v9

PHPCMS v9 is powerful indeed, but some built-in cache configuration methods lack clear tutorials, such as the memcache class.

PHPCMS has this cache built-in, but I never knew how to enable it.After tinkering all night, I wanted to configure PHPCMS’s setcache and getcache methods to dynamically switch cache types …

Solutions for PHPCMS Frontend Submission Garbled Text, Image Upload Size Limits, and Push Sorting

PHPCMS v9 tested – theoretically applicable to 9.x earlier versions and later versions where this issue hasn’t been fixed. 1. Frontend submission garbled text: I don’t know how the official team conducted testing, but every release has numerous bugs. After this update, there was another wave of criticism, including frontend submission garbled text. Debugging revealed that

How to Prevent SQL Injection in PHP?

Problem Description: If user input data is inserted into an SQL query without proper handling, the application is likely vulnerable to SQL injection attacks, as shown in the following example: $unsafe_variable = $_POST[‘user_input’]; mysql_query(“INSERT INTO …

phpMyAdmin Login Failed Error 1130 Fix

Issue: After installing MySQL, phpMyAdmin cannot log into MySQL and returns error 1130, but logging in via the MySQL command line with `mysql -u root -p` works. Analysis and Solution: A Baidu search reveals that MySQL error 1130 is caused by remote connection users lacking remote access privileges. Solution: Log in locally …