Setting Up a Local Web Development Environment on Windows
PHP Configuration
Download the latest PHP version from the official Windows repository. Extract the archive to a dedicated directory such as D:\WebDev\php-8.2.0.
Navigate to the extracted folder and create a working configuration file by copying php.ini-development and renaming it to php.ini.
Open the configuration file and locate the extension ...
Posted on Fri, 21 Aug 2026 16:53:07 +0000 by chixsilog
PHP RabbitMQ Tutorial - Part Three: Work Queues
Publish/Subscribe
In this tutorial, we will use PHP with the php-amqplib library to implement a publish/subscribe system. This pattern differs from work queues, where each task is delivered to exactly one worker. Instead, we will broadcast messages to multiple consumers.
Prerequisites
This tutorial assumes RabbitMQ is installed and running on l ...
Posted on Thu, 20 Aug 2026 16:54:59 +0000 by aquila125
Integrating MySQL Database with PHP in WeChat Mini Program
Preparation
1. Domain Registration
A domain name is required, and it must be registered.
2. Server Setup
A server is needed, and I use the BaoTa panel for ease of use.
Alternatively, a virtual host can be used, which is cost-effective for beginners.
The overall process involves using wx.request in the WeChat Mini Program JavaScript to fetch dat ...
Posted on Thu, 20 Aug 2026 16:49:24 +0000 by herghost
Installing PHP 7.4 via Yum on CentOS 7
Installation via Yum
Yum automates the instalation process by resolving and installing all required software dependencies. In CentOS 7, system services are managed with systemctl. A yum installation automatically registers the service, allowing you to start it with commands like systemctl start php74-php-fpm.service. The primary disadvantage is ...
Posted on Tue, 18 Aug 2026 16:15:04 +0000 by kemper
Role-Based Access Control Implementation in ThinkPHP 3.2.3
RBAC Architecture in CMS Development
This CMS system built on ThinkPHP 3.2.3 implements Role-Based Access Control (RBAC) for managing user permissions across various modules including content, products, users, roles, and system settings.
RBAC Core Concepts
RBAC operates on the principle that users are assigned to roles, and roles are granted pe ...
Posted on Mon, 17 Aug 2026 16:31:51 +0000 by adamddickinson
Implementing the Simple Factory Pattern in PHP
Simple Factory Pattern Overview
The Simple Factory Pattern decouples the client code from the object instantaition logic by centralizing creation inside a dedicated factory. The client requests objects from the factory instead of instantiating them directly, which improves maintainability and extensibility.
A key limitation is that adding or mo ...
Posted on Mon, 17 Aug 2026 16:13:56 +0000 by mmoussa
PHPExcel Implementation for Excel File Import and Export with Template Support
PHPExcel is a powerful library that provides comprehensive functionality for handling Excel files in PHP. This article covers reading Excel files and exporting data with template support.
Prerequisites
Download PHPExcel SDK from GitHub: https://github.com/PHPOffice/PHPExcel
Extract the SDK and integrate the class files into your project struct ...
Posted on Sun, 16 Aug 2026 17:01:15 +0000 by dadamssg
PHP Development Standards
PSR-[0-4]
PSR stands for Proposing a Standards Recommendation.
PSR-0 (Autoloading Standard)
PSR-1 (Basic Coding Standard)
PSR-2 (Coding Style Guide)
PSR-3 (Logger Interface)
PSR-4 (Improved Autoloading, can replace PSR-0)
PSR-1
PHP source files must use only the <?php and <?= tags.
Source code encoding must be UTF-8 without BOM.
A sour ...
Posted on Sun, 16 Aug 2026 16:01:03 +0000 by vboyz
Implementing Stripe Checkout and Webhook Verification in PHP
Dashboard Configuration and API Keys
Begin by logging into the Stripe Dashboard. Navigate to the Product Catalog to define the items you intend to sell. Once a product is created, generate a Price object associated with it. The identifier for this Price object (prefixed with price_) is required for the backend integration.
Retrieve the API keys ...
Posted on Sat, 15 Aug 2026 16:30:20 +0000 by tnkannan
Analyzing and Exploiting Common Web Security Vulnerabilities
SQL Injection with Advanced Bypass Techniques
This section details a classic SQL injection vulnerability, requiring a series of discovery steps and an advanced bypass method to retrieve sensitive information.
Vulnerability Identification
Initial reconnaissance revealed the presence of a SQL injection vulnerability. Inputting a single quote (1') ...
Posted on Fri, 07 Aug 2026 16:49:46 +0000 by ikon