Tagged articles

PHP

3032 articles · Page 29 of 31
Huajiao Technology
Huajiao Technology
Nov 26, 2019 · Backend Development

How Pepperbus Unifies Asynchronous Task Management Across Diverse Tech Stacks

This article details the design, requirements, architecture, and operational dashboard of Pepperbus, a unified bus system that standardizes asynchronous task handling for PHP, Java, and Go services at Huajiao, highlighting its storage plug‑in model, Redis‑based protocol, and monitoring capabilities.

AsynchronousDashboardPHP
0 likes · 8 min read
How Pepperbus Unifies Asynchronous Task Management Across Diverse Tech Stacks
Efficient Ops
Efficient Ops
Nov 24, 2019 · Backend Development

How to Build a High‑Performance LAMP Stack with FastCGI, ApacheBench, and XCache

This guide walks through deploying a LAMP architecture with static‑dynamic separation, compiling PHP with FastCGI, configuring Apache proxy to PHP‑FPM, performing load testing using ApacheBench, installing XCache for PHP acceleration, and finally setting up a Discuz BBS forum, providing step‑by‑step commands and performance metrics.

ApacheBBSLAMP
0 likes · 24 min read
How to Build a High‑Performance LAMP Stack with FastCGI, ApacheBench, and XCache
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
Oct 29, 2019 · Backend Development

How to Secure PHP Code with the Open‑Source screw‑plus Extension

This article explains how to protect commercial PHP projects from source leakage by using the open‑source screw‑plus extension to encrypt and obfuscate code, covering PHP extension lifecycle, hook mechanisms, encryption workflow, implementation details, and practical advantages and limitations.

Code EncryptionExtension DevelopmentPHP
0 likes · 9 min read
How to Secure PHP Code with the Open‑Source screw‑plus Extension
Ops Development Stories
Ops Development Stories
Sep 20, 2019 · Cloud Native

Deploy PHP & Java Websites on Kubernetes: A Step‑by‑Step Guide

This guide walks beginners through deploying PHP and Java web applications on a Kubernetes cluster, covering environment preparation, Docker image creation, namespace and secret setup, writing deployment, service and ingress manifests, and verifying access via host file configuration, illustrating each step with code snippets and diagrams.

DockerHarborJava
0 likes · 12 min read
Deploy PHP & Java Websites on Kubernetes: A Step‑by‑Step Guide
Architecture Digest
Architecture Digest
Sep 17, 2019 · Backend Development

Evolution and Refactoring of the Mafengwo IM System: From PHP 1.0 to Go‑Based Microservices

The article details the step‑by‑step architectural evolution of Mafengwo's instant‑messaging platform—from an initial PHP‑based monolith, through polling optimizations with OpenResty, to a Go‑implemented, micro‑service‑oriented design that improves scalability, reliability, and multi‑device synchronization.

GoIMOpenResty
0 likes · 14 min read
Evolution and Refactoring of the Mafengwo IM System: From PHP 1.0 to Go‑Based Microservices
21CTO
21CTO
Sep 10, 2019 · Backend Development

Why Laravel Stands Out: 14 Compelling Reasons to Choose This Backend Framework

This article explains why using Laravel for web development saves time and effort by offering built‑in authentication, convention‑over‑configuration, powerful ORM, easy email handling, Artisan CLI, testing support, simple routing, and a vibrant community, making it a top PHP backend choice.

MVCORMPHP
0 likes · 14 min read
Why Laravel Stands Out: 14 Compelling Reasons to Choose This Backend Framework
21CTO
21CTO
Sep 6, 2019 · Backend Development

Mastering Cache Reads: Prevent Cache Penetration and Expiration in High‑Concurrency Systems

This article explains how to implement robust cache‑read logic with Redis, covering common pitfalls such as cache penetration and cache expiration, and demonstrates practical solutions—including placeholder caching and lock‑based cache rebuilding—to keep high‑traffic back‑ends performant and reliable.

Cache PenetrationPHPRedis
0 likes · 5 min read
Mastering Cache Reads: Prevent Cache Penetration and Expiration in High‑Concurrency Systems
Python Programming Learning Circle
Python Programming Learning Circle
Sep 6, 2019 · Fundamentals

Why Many Switch from PHP to Python: A Comparative Overview

An overview comparing Python and PHP highlights Python’s readability, rapid development, and broad applicability versus PHP’s server‑side strengths, detailing each language’s limitations, advantages, typical use cases, and why developers increasingly favor Python for diverse projects.

ComparisonPHPProgramming Languages
0 likes · 6 min read
Why Many Switch from PHP to Python: A Comparative Overview
Ziru Technology
Ziru Technology
Sep 6, 2019 · Backend Development

How to Build and Deploy PHP Application Images on the Omega Platform

This article guides readers through the architecture, extension types, image construction steps, configuration details, and local debugging procedures for deploying PHP applications as container images on the Omega platform, highlighting best practices and common pitfalls.

DockerImage BuildKubernetes
0 likes · 10 min read
How to Build and Deploy PHP Application Images on the Omega Platform
360 Tech Engineering
360 Tech Engineering
Aug 19, 2019 · Backend Development

PHP Interface Performance Optimization: Diagnosis Methods and Practical Solutions

This article shares practical experiences on diagnosing PHP interface performance bottlenecks using ThinkPHP's G function and profiling tools like Xhprof, then presents concrete code‑level, database‑level, and hardware‑level optimization techniques to improve execution speed and reduce resource consumption.

PHPbackend developmentcode optimization
0 likes · 9 min read
PHP Interface Performance Optimization: Diagnosis Methods and Practical Solutions
Open Source Tech Hub
Open Source Tech Hub
Aug 5, 2019 · Backend Development

How to Implement a Redis‑Backed Queue in ThinkPHP5

This guide explains how to set up ThinkPHP5's built‑in Queue component with a Redis driver, create a custom queue class, configure the queue, produce messages, and run a consumer process, including handling retries, delays, and daemon mode.

Message QueuePHPRedis
0 likes · 9 min read
How to Implement a Redis‑Backed Queue in ThinkPHP5
21CTO
21CTO
Aug 2, 2019 · Backend Development

Is PHP Really Dead? Unpacking the Myths and Market Realities

This article examines recent rumors about PHP’s demise, reviews Zend’s leadership changes, presents market‑share data, and argues why PHP remains a viable choice for startups and small‑to‑medium enterprises despite criticism.

Market SharePHPWeb Development
0 likes · 8 min read
Is PHP Really Dead? Unpacking the Myths and Market Realities
Open Source Tech Hub
Open Source Tech Hub
Jul 26, 2019 · Operations

Running a PHP Loop in Background: Using &, nohup, and Signal Handling

This guide shows how to run a simple PHP script that prints a line every second, demonstrates the effects of Ctrl+C (SIGINT) and session termination (SIGHUP), and explains how to use the shell background operator (&), nohup, and their combination to control output and process termination.

BackgroundPHPProcess Management
0 likes · 7 min read
Running a PHP Loop in Background: Using &, nohup, and Signal Handling
Open Source Tech Hub
Open Source Tech Hub
Jul 18, 2019 · Backend Development

Step‑by‑Step Guide to Debug PHP with Xdebug in PhpStorm

This tutorial walks you through installing Xdebug, configuring php.ini, setting up PhpStorm’s debug preferences, and using the Xdebug helper browser extension so you can pause execution at breakpoints and debug PHP code directly from your IDE.

DebuggingIDEPHP
0 likes · 7 min read
Step‑by‑Step Guide to Debug PHP with Xdebug in PhpStorm
Huajiao Technology
Huajiao Technology
Jul 9, 2019 · Backend Development

Server‑Side Video Rendering for a Mini‑Program Using After Effects, Aerender, and FFmpeg

This article describes how a PHP‑based backend service integrates After Effects' aerender command‑line tool and FFmpeg to automatically generate, split, compress, and deliver video templates for a mini‑program, covering requirement analysis, architecture, rendering workflow, code snippets, and performance optimizations.

After EffectsFFmpegGo
0 likes · 11 min read
Server‑Side Video Rendering for a Mini‑Program Using After Effects, Aerender, and FFmpeg
37 Interactive Technology Team
37 Interactive Technology Team
May 31, 2019 · Fundamentals

A Comprehensive Guide to QuickSort: Principles, Implementations, Performance Characteristics, and Optimizations

This comprehensive guide explains QuickSort’s divide‑and‑conquer principle, presents two PHP‑style implementations, analyzes its O(N log N) average and O(N²) worst‑case performance, and details practical optimizations such as random pivot selection, switching to insertion sort for small sub‑arrays, three‑way and dual‑pivot variants.

JavaPHPSorting Algorithm
0 likes · 10 min read
A Comprehensive Guide to QuickSort: Principles, Implementations, Performance Characteristics, and Optimizations
21CTO
21CTO
May 18, 2019 · Backend Development

Why Modern PHP Is Worth Your Attention in 2019 and Beyond

This article reviews PHP's recent evolution—faster runtimes, a thriving ecosystem, modern language features, and improved tooling—while acknowledging lingering design quirks, to help developers decide whether PHP remains a viable choice for contemporary web development.

FrameworksLanguage FeaturesPHP
0 likes · 12 min read
Why Modern PHP Is Worth Your Attention in 2019 and Beyond
Mafengwo Technology
Mafengwo Technology
Feb 18, 2019 · Backend Development

Why MaFengWo Built Its Own Message Bus and How It Works

This article explains the motivations behind MaFengWo's custom message bus, details its architecture and implementation—including SDK, RabbitMQ broker, Go Deliver service, and MySQL subscription storage—and outlines future plans for productization and micro‑service integration.

Message BusPHPasynchronous processing
0 likes · 12 min read
Why MaFengWo Built Its Own Message Bus and How It Works
Open Source Tech Hub
Open Source Tech Hub
Dec 28, 2018 · Information Security

Generate RSA Keys and Use PHP for Encryption & Decryption

This guide explains what RSA encryption is, outlines common use cases, shows step‑by‑step commands to generate private and public keys with OpenSSL, and provides a complete PHP class with methods for public‑key encryption, private‑key decryption, signing and verification, plus practical code examples.

DecryptionPHPRSA
0 likes · 9 min read
Generate RSA Keys and Use PHP for Encryption & Decryption
21CTO
21CTO
Dec 24, 2018 · Backend Development

How to Secure Your Laravel App with Automated Backups Using Spatie

This tutorial walks you through installing the Spatie Laravel‑Backup package, configuring email notifications, setting filename prefixes, limiting storage usage, enabling compression, monitoring backups, and automating the process with cron to protect your Laravel application from data loss.

AutomationPHPSpatie
0 likes · 5 min read
How to Secure Your Laravel App with Automated Backups Using Spatie
Ops Development Stories
Ops Development Stories
Dec 21, 2018 · Operations

How to Install Zabbix Server, MySQL, Nginx, PHP, and Elasticsearch on CentOS

This comprehensive tutorial walks you through adding the Zabbix repository, installing Zabbix server and web interface, setting up MySQL 5.7, configuring Nginx and PHP from source, deploying the Zabbix agent, installing Elasticsearch with the head plugin, and finally storing Zabbix history data in Elasticsearch on a CentOS system.

CentOSElasticsearchMySQL
0 likes · 20 min read
How to Install Zabbix Server, MySQL, Nginx, PHP, and Elasticsearch on CentOS
dbaplus Community
dbaplus Community
Dec 10, 2018 · Databases

How to Run Percona MongoDB HotBackup with a Simple PHP Script

This guide explains why the community edition of MongoDB lacks native hot backup, how Percona MongoDB adds online backup support, the underlying backup and restore principles, and provides a step‑by‑step PHP script with environment setup, configuration, execution, and scheduling instructions.

HotBackupMongoDBOps
0 likes · 7 min read
How to Run Percona MongoDB HotBackup with a Simple PHP Script
21CTO
21CTO
Dec 8, 2018 · Fundamentals

Which Open‑Source Language to Learn Next? PHP, Python, JavaScript, Ruby & Go Compared

The article examines the popularity of five open‑source programming languages—PHP, Python, JavaScript, Ruby, and Go—by evaluating their community size, typical use cases, dominant frameworks, and career prospects, helping developers choose the most suitable language for web, backend, or emerging applications.

JavaScriptPHPProgramming Languages
0 likes · 7 min read
Which Open‑Source Language to Learn Next? PHP, Python, JavaScript, Ruby & Go Compared
dbaplus Community
dbaplus Community
Nov 28, 2018 · Databases

Boost MySQL Performance: How to Use the PHP Rebuilt Percona PT‑kill with Email & WeChat Alerts

This guide introduces a PHP‑based reimplementation of Percona’s PT‑kill tool that not only terminates long‑running MySQL queries but also adds email and WeChat notifications, explains installation prerequisites, detailed command‑line options, example usages, configuration steps, and how to customize alerts and logging.

Database MonitoringMySQLPHP
0 likes · 8 min read
Boost MySQL Performance: How to Use the PHP Rebuilt Percona PT‑kill with Email & WeChat Alerts
21CTO
21CTO
Nov 28, 2018 · Backend Development

Why Laravel’s Powerful Features Can Supercharge Your PHP Development

This article introduces Laravel, a modern PHP framework, highlighting its MVC architecture, robust ORM, Blade templating, streamlined routing, controller organization, and built‑in authentication, while providing code examples to show how these features boost developer productivity.

AuthenticationBladeORM
0 likes · 6 min read
Why Laravel’s Powerful Features Can Supercharge Your PHP Development
Python Programming Learning Circle
Python Programming Learning Circle
Oct 27, 2018 · Backend Development

Mastering PHP Page Caching: From Full Static Pages to Opcode and Memcached

This article explains various PHP caching techniques—including full‑page static generation, partial page fragments, data and query caching, time‑based and content‑change strategies, as well as memory caches like Memcached, Apache cache settings, APC extension, and opcode caching—providing code examples and practical guidance to improve web performance.

ApacheMemcachedPHP
0 likes · 7 min read
Mastering PHP Page Caching: From Full Static Pages to Opcode and Memcached
21CTO
21CTO
Oct 23, 2018 · Backend Development

Simplify PHP Environment Variables with vlucas/phpdotenv

This guide explains how to manage PHP environment variables using the vlucas/phpdotenv library, covering .env file conventions, Composer installation, and code snippets to load and access variables, making configuration handling in development simple and secure.

ConfigurationPHPbackend
0 likes · 3 min read
Simplify PHP Environment Variables with vlucas/phpdotenv
Efficient Ops
Efficient Ops
Oct 13, 2018 · Big Data

Boost Your Kafka Integration with KafkaBridge: Multi-Language SDK Overview

KafkaBridge is a lightweight, multi-language SDK that simplifies Kafka read/write operations, offering unified interfaces, long‑connection reuse for PHP‑FPM, and reliable message delivery, with detailed compilation steps, usage examples, and performance benchmarks across C++, Python, PHP, and Go.

C++KafkaPHP
0 likes · 7 min read
Boost Your Kafka Integration with KafkaBridge: Multi-Language SDK Overview
MaGe Linux Operations
MaGe Linux Operations
Sep 26, 2018 · Backend Development

Step-by-Step Guide to Building an LNMP Stack with SSL and Auth

This tutorial walks you through installing and configuring Nginx, MariaDB, PHP‑FPM, setting up a Xiaomi‑style website, securing the server with self‑signed SSL certificates, and adding basic HTTP authentication, complete with command‑line examples and configuration snippets.

LNMPMySQLPHP
0 likes · 7 min read
Step-by-Step Guide to Building an LNMP Stack with SSL and Auth
Python Programming Learning Circle
Python Programming Learning Circle
Sep 20, 2018 · Backend Development

Why Adopt a Personal PHP Coding Standard? Boost Efficiency and Readability

This article explains the importance of establishing personal PHP coding standards, covering benefits such as increased efficiency, readability, professionalism, and team collaboration, and provides detailed guidelines on file and folder naming, class and method conventions, indentation, comment styles, directory structure, and overall code style best practices.

Code stylePHPbest practices
0 likes · 12 min read
Why Adopt a Personal PHP Coding Standard? Boost Efficiency and Readability
21CTO
21CTO
Sep 15, 2018 · Backend Development

Why HHVM Is Dropping PHP Support and What It Means for Developers

Facebook's HHVM team announced that version 3.30 will be the last to support PHP, outlining a timeline for dropping PHP, recommending migration to Hack or PHP 7, and detailing 2018‑19 open‑source plans to ease the transition and improve tooling.

PHPPerformancebackend
0 likes · 4 min read
Why HHVM Is Dropping PHP Support and What It Means for Developers
21CTO
21CTO
Sep 6, 2018 · Backend Development

What’s New in Laravel 5.7? Explore Updated Resources, Pagination & More

Laravel 5.7 has been officially released, bringing a revamped resources directory, a new pagination method to control link counts, improved Eloquent error messages, and ongoing bug and security fixes, with details on the updated folder layout and usage examples.

PHPWeb Developmentframework
0 likes · 3 min read
What’s New in Laravel 5.7? Explore Updated Resources, Pagination & More
360 Quality & Efficiency
360 Quality & Efficiency
Aug 24, 2018 · Backend Development

Backend Development Solutions for MySQL Data Storage, SMTP Email, Outlook Compatibility, and pChart Image Generation

This article summarizes practical backend techniques for storing associative arrays in MySQL using PHP serialization or JSON, sending reliable SMTP emails with PHPMailer, handling Outlook HTML and image display issues, and generating charts with the pChart library, providing code examples and configuration tips.

Base64PHPSMTP
0 likes · 9 min read
Backend Development Solutions for MySQL Data Storage, SMTP Email, Outlook Compatibility, and pChart Image Generation
Python Programming Learning Circle
Python Programming Learning Circle
Aug 18, 2018 · Backend Development

How to Split Laravel Routes into Multiple Files for Cleaner Backend Architecture

This guide explains why and how to split Laravel's routes.php into multiple module‑based files using a customized RouteServiceProvider, shows the necessary code, folder layout, and demonstrates that caching with php artisan route:cache preserves performance while keeping the backend clean and maintainable.

PHPRoute OrganizationRouting
0 likes · 4 min read
How to Split Laravel Routes into Multiple Files for Cleaner Backend Architecture
37 Interactive Technology Team
37 Interactive Technology Team
Aug 16, 2018 · Backend Development

Investigating Intermittent Memcache set/add Failures in PHP Memcache Extension 2.2.7

The intermittent set/add failures observed with PHP’s Memcache extension 2.2.7 are caused by its built‑in 15‑second retry interval (MMC_DEFAULT_RETRY = 15) that marks the connection permanently failed after a poll timeout, and can be resolved by specifying the hidden fourth ‘timeoutms’ parameter, adjusting php.ini, or migrating to the newer Memcached extension.

PHPbackendconnection timeout
0 likes · 6 min read
Investigating Intermittent Memcache set/add Failures in PHP Memcache Extension 2.2.7
Beike Product & Technology
Beike Product & Technology
Aug 15, 2018 · Backend Development

Applying Yii2 Model Validation with Scenarios and Rules

This article explains how Yii2 uses validators and scenario configurations to perform comprehensive data validation in PHP models, illustrating the approach with a complete code example, detailed rule definitions, and guidance on using on/except, message, and scenarios methods.

ModelPHPScenario
0 likes · 7 min read
Applying Yii2 Model Validation with Scenarios and Rules
Python Programming Learning Circle
Python Programming Learning Circle
Aug 8, 2018 · Backend Development

Why Laravel Dominates PHP: Key Features and Code Samples

This article explains why Laravel has become the most successful PHP framework by highlighting its modular architecture, micro‑service support, routing, middleware, caching, authentication, billing integration, task automation, encryption, event handling, pagination, ORM, testing, and queue features, all illustrated with clear code examples.

ORMPHPWeb Framework
0 likes · 7 min read
Why Laravel Dominates PHP: Key Features and Code Samples
360 Quality & Efficiency
360 Quality & Efficiency
Jul 23, 2018 · Operations

Introduction to X Monitoring System: Architecture, Modules, and Implementation Details

The article presents a detailed overview of the internally developed X Monitoring system, covering its architecture, configuration, reporting and monitoring modules, the use of Redis, Qbus, ElasticSearch and MySQL, as well as both server‑side (API/DB) and agent‑side (PHP) monitoring features, data collection commands, alert thresholds, and overall operational benefits.

PHPSystem Architecturealerting
0 likes · 5 min read
Introduction to X Monitoring System: Architecture, Modules, and Implementation Details
21CTO
21CTO
Jul 13, 2018 · Blockchain

Build a Simple PHP Blockchain from Scratch – Step‑by‑Step Guide

This tutorial explains the fundamentals of blockchain by defining block and blockchain classes in PHP, detailing fields, hash generation with SHA‑256, constructing genesis and subsequent blocks, and providing complete example code with a test run that demonstrates how each block links to its predecessor.

PHPcryptographytutorial
0 likes · 6 min read
Build a Simple PHP Blockchain from Scratch – Step‑by‑Step Guide
Python Programming Learning Circle
Python Programming Learning Circle
Jul 13, 2018 · Backend Development

Master Laravel Database Migrations: Step-by-Step Guide

This article explains how Laravel's database migration system works, covering configuration, creating migration files, designing schemas with the Schema builder, and executing migrations and rollbacks via Artisan commands to efficiently manage and version‑control database structures.

ArtisanDatabase MigrationPHP
0 likes · 5 min read
Master Laravel Database Migrations: Step-by-Step Guide
Python Programming Learning Circle
Python Programming Learning Circle
Jul 6, 2018 · Backend Development

Boost Laravel Productivity: 5 Must‑Know Helper Functions

This article introduces five essential Laravel helper functions—data_get, str_plural, route, abort_if, and optional—explaining their usage with code examples, default values, wildcard support, URL generation, conditional exception handling, and safe property access to streamline backend development.

PHPWeb Developmentbackend development
0 likes · 7 min read
Boost Laravel Productivity: 5 Must‑Know Helper Functions
360 Tech Engineering
360 Tech Engineering
Jun 19, 2018 · Backend Development

Improving PHP Code Quality with PHING, PHPCS, PHPCPD, and Phan

This article explains how to set up a PHP project with Composer, PHING, and a suite of quality‑checking tools—including PHPCS for coding standards, PHPCPD for duplicate detection, and Phan for deep static analysis—to automatically enforce code quality and reduce manual review effort.

PHINGPHPPHPCPD
0 likes · 7 min read
Improving PHP Code Quality with PHING, PHPCS, PHPCPD, and Phan
21CTO
21CTO
Jun 6, 2018 · Backend Development

How to Implement Resumable File Downloads in PHP Using HTTP Range

This article explains the principle of HTTP range requests and provides step‑by‑step PHP code to enable resumable file downloads, covering header configuration, range parsing, validation, and partial content delivery for both private and dynamic resources.

HTTP RangePHPPartial Content
0 likes · 5 min read
How to Implement Resumable File Downloads in PHP Using HTTP Range
21CTO
21CTO
May 21, 2018 · Backend Development

Mastering PHP Magic Methods: 16 Essential Tricks for Developers

This guide explains the 16 most important PHP magic methods, showing when they are invoked, how to declare them, and providing clear code examples for constructors, destructors, property accessors, cloning, serialization, autoloading, and debugging to help developers write more robust object‑oriented code.

PHPmagic methodsobject-oriented programming
0 likes · 19 min read
Mastering PHP Magic Methods: 16 Essential Tricks for Developers