Results for “PHP”

PHPCMS Admin Account Brute-Force Vulnerability

Description: Bypass CAPTCHA restrictions to perform password guessing attacks against website administrator accounts. Impact: Under certain circumstances, the admin account can be cracked, leading to unauthorized login, website defacement, and creating conditions for attackers to launch further attacks. Solution: Option 1: Official Patch: http://bbs.ph …

PHPCMS v9 content_output.class.php Line 338 Error Fix

I’m officially saying goodbye to Dedecms after using it for 5 years鈥擨 simply couldn’t fend off the endless attacks anymore! After battling it out for several weeks, the malware is finally gone~~~~ but at the cost of not even being able to add articles myself!~~ So frustrating! I made up my mind to switch to Phpcms, and what a switch it was~~ I also uncovered over 5,000 spam accounts; no wonder the database was …

jQuery: $post, $get, $ajax and PHP — Implementing Async Loading

What is async loading?
The simplest way to put it is: inserting data from another page into the current page using functions like append() or html(). In plain JS, this means inserting responseXML or responseText into the page.
The other page can be static, dynamic, or even JSON/XML data.
The principle is basically the same — for pages, it’s convenient, just grab the code we want and insert it; for JSON and XML, we need to parse and place the appropriate data in the right spot.
Dynamic pages can also be parsed as long as they generate JSON or XML formatted pages.
The jQuery API usage:

PHP setcookie() Usage

//
setcookie(name, value, expire, path, domain, secure)

Returns true for success, false for failure. name and value are required, other parameters are optional. expire is the cookie expiration time. time() + 3600 * 24 * 30 will set the Cooki …

How to Install Nginx and PHP-FPM via YUM on CentOS 6

原文地址:http://www.lifelinux.com/how-to-install-nginx-and-php-fpm-on-centos-6-via-yum/ Before installing Nginx and PHP-FPM, you must remove any previously installed Apache and PHP from your system. Log in as root and enter the following command: # yum remove htt …

Multi-Server Session Sharing with PHP + Memcache

In many cases, a complete system may run across multiple servers. If these servers need to share sessions, PHP’s default file-based session storage falls short. At this point, you can consider using memcache to handle session storage and …

Potential New Features in PHP6

PHP core developer Pierre Joye recently posted on the official website about new features that may appear in PHP6. The reason it’s “may appear” is because the PHP6 project is still in the draft stage, and these features are merely ideas that still need discussion and could change at any time. …

PHPcms v9 Template Field Calling Quick Reference

For content pages, directly write {$xyz}
For list pages, you need to query the table of this model. For example, if it’s the news model, query the phpcms_c_news table. Then {$r[xyz]}Article Thumbnail:

Article Title:
{str_cut($r[title], $titlelen)}Article Description:
{str_cut($r[descriptio …

How to Fix php-fpm 100% CPU Usage

How to Fix High CPU Usage on LNMP Server: Troubleshooting Guide
I thought my recently configured LNMP stack was running quite stably, and I was secretly pleased with myself. However, starting last night, I noticed the server’s CPU usage was excessively high, even spiking to 100%. My memory is 1GB, and under normal circumstances, the usage rate should be below 5%, and at most not exceed 10%. Recent monitoring from Alibaba Cloud shows: cmhello.com-201303089 using to …