Tagged articles
3002 articles
Page 30 of 31
21CTO
21CTO
Mar 22, 2017 · Backend Development

How Does PHP’s Zend Engine Execute Your Code? Inside the Virtual Machine

This article explains how PHP, as a scripted language, is compiled to intermediate code and run by the Zend virtual machine, detailing the VM’s role, JIT compilation, execution stacks, php‑fpm workflow, and key questions about OpCache and configuration loading.

PHPZend enginephp-fpm
0 likes · 5 min read
How Does PHP’s Zend Engine Execute Your Code? Inside the Virtual Machine
Nightwalker Tech
Nightwalker Tech
Mar 2, 2017 · Information Security

Techniques and Tools for Anti‑Spam Content Filtering in PHP

The discussion outlines practical anti‑spam strategies—including text length limits, keyword replacement, trie‑based data structures, AC automata, Bayesian and vector‑similarity algorithms, and PHP extensions such as libdatrie—while also sharing performance metrics and resource links for implementing robust content filtering systems.

PHPTriecontent filtering
0 likes · 4 min read
Techniques and Tools for Anti‑Spam Content Filtering in PHP
21CTO
21CTO
Feb 23, 2017 · Backend Development

Inside PHP: Understanding the zval Structure and Memory Management

This article explains PHP's core zval structure, how different variable types are stored, and the mechanisms of reference counting, copy‑on‑write, and garbage collection that enable efficient memory management in the Zend engine.

BackendCopy-on-WriteMemory Management
0 likes · 12 min read
Inside PHP: Understanding the zval Structure and Memory Management
Tencent Cloud Developer
Tencent Cloud Developer
Feb 23, 2017 · Cloud Computing

Building Small Web Tools on Tencent Cloud: Questionnaire System, QR‑Code Utility, Map Search, and Xcode Download

The article walks through setting up a low‑cost Tencent Cloud Ubuntu server with Apache or Nginx‑PHP, then demonstrates building four lightweight web utilities—a self‑hosted questionnaire system, a JavaScript QR‑code generator/scanner with short‑URL support, a Baidu‑map search tool, and a PHP script that parses Apple’s CFPropertyList to list Xcode dmg and docset download URLs.

NginxPHPTencent Cloud
0 likes · 13 min read
Building Small Web Tools on Tencent Cloud: Questionnaire System, QR‑Code Utility, Map Search, and Xcode Download
ITPUB
ITPUB
Feb 21, 2017 · Databases

How to Quickly Detect and Fix Common SQL Errors in PHP

This guide explains why production SQL errors appear despite successful local tests, shows how to proactively log and monitor PHP‑MySQL errors, and provides concrete solutions for frequent MySQL error codes with example code and step‑by‑step troubleshooting tips.

Error LoggingPHPdatabase
0 likes · 10 min read
How to Quickly Detect and Fix Common SQL Errors in PHP
ITPUB
ITPUB
Feb 6, 2017 · Information Security

Mastering SQL Injection: Types, Techniques, and Real‑World Examples

This article provides a practical introduction to SQL injection, covering its fundamentals, common attack vectors such as Boolean‑based, error‑based, and UNION‑based injections, step‑by‑step exploitation examples with PHP code, and tips for constructing payloads and understanding their impact on vulnerable web applications.

Boolean-basedDatabase ExploitationError-based
0 likes · 13 min read
Mastering SQL Injection: Types, Techniques, and Real‑World Examples
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Dec 26, 2016 · Backend Development

How Xiaomi Engineered a High‑Performance Flash‑Sale System for the 2014 Mi Fan Festival

This article recounts Xiaomi's rapid development of a flash‑sale platform—starting from a week‑long PHP prototype to a Go‑based, Redis‑backed architecture—detailing the design choices, scalability tactics, and performance optimizations that enabled the 2014 Mi Fan Festival to handle millions of concurrent users.

BackendGoPHP
0 likes · 14 min read
How Xiaomi Engineered a High‑Performance Flash‑Sale System for the 2014 Mi Fan Festival
21CTO
21CTO
Dec 24, 2016 · Backend Development

Generate Thumbnails with GD2 and ImageMagick in CodeIgniter

This guide explains why thumbnails are essential, outlines common use cases, and provides step‑by‑step CodeIgniter examples for creating 50×50 thumbnails using PHP's GD2 library and ImageMagick, including configuration, resizing, and error handling.

CodeIgniterGD2Image Processing
0 likes · 8 min read
Generate Thumbnails with GD2 and ImageMagick in CodeIgniter
21CTO
21CTO
Dec 24, 2016 · Backend Development

How to Define Persistent Constants in a PHP 7.x Extension

This article explains step‑by‑step how to add, register, and correctly clean up persistent constants in a PHP 7.x extension, covering the necessary macro calls, hash‑destroy functions, and a common fatal‑error pitfall with its solution.

ConstantsExtension DevelopmentPHP
0 likes · 6 min read
How to Define Persistent Constants in a PHP 7.x Extension
21CTO
21CTO
Dec 5, 2016 · Backend Development

How to Implement array_concat in a PHP Extension: Merging Arrays at the C Level

This article explains how to create a PHP extension function named array_concat that merges two arrays by concatenating string values for matching keys, detailing the required C code, Zend hash operations, parameter parsing, and example usage, providing a practical guide for PHP developers.

ArrayExtensionPHP
0 likes · 6 min read
How to Implement array_concat in a PHP Extension: Merging Arrays at the C Level
21CTO
21CTO
Nov 27, 2016 · Backend Development

How to Implement a Custom str_concat Function in a PHP Extension

This article demonstrates how to create a PHP extension that adds a str_concat function, explaining the underlying zend_string structure, required macros, and providing complete source code to handle prefix detection and string concatenation within the extension.

Extension DevelopmentPHPString Manipulation
0 likes · 4 min read
How to Implement a Custom str_concat Function in a PHP Extension
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
Nov 22, 2016 · Backend Development

Why PHP OpCache Fails with Symlinks and How to Fix It

A PHP backend team discovered that enabling OpCache with a symlinked project caused the new version to be ignored, traced the issue to cached file paths, and resolved it by adjusting Nginx fastcgi parameters to use the real path, restoring proper deployment behavior.

NginxOPcachePHP
0 likes · 5 min read
Why PHP OpCache Fails with Symlinks and How to Fix It
21CTO
21CTO
Nov 13, 2016 · Backend Development

How to Build a Simple PHP Web Crawler: From Robots.txt to cURL

This guide explains the fundamentals of creating a PHP web crawler, covering server communication basics, interpreting robots.txt and sitemap files, and providing practical code examples using file_get_contents and cURL for efficient content retrieval.

PHPWeb Crawlerbackend-development
0 likes · 6 min read
How to Build a Simple PHP Web Crawler: From Robots.txt to cURL
Architecture Digest
Architecture Digest
Oct 29, 2016 · Backend Development

Understanding Laravel’s Core Concepts: Lifecycle, Service Container, Dependency Injection, Contracts, and Facades

This article explains Laravel’s underlying architecture by detailing PHP’s execution phases, Laravel’s request lifecycle, the bootstrap process, the service container, dependency injection, binding mechanisms, and the role of contracts and facades, providing practical code examples for each concept.

ContractsFacadesLaravel
0 likes · 16 min read
Understanding Laravel’s Core Concepts: Lifecycle, Service Container, Dependency Injection, Contracts, and Facades
Architecture Digest
Architecture Digest
Sep 15, 2016 · Backend Development

Design and Evolution of Xiaomi’s Flash‑Sale System for the 2014 Mi Fan Festival

The article recounts how Xiaomi’s engineering team built, tested, and iteratively improved a high‑concurrency flash‑sale platform—first in PHP with Redis and later in Go—to reliably handle millions of users during the 2014 Mi Fan Festival, detailing architectural choices, performance optimizations, and lessons learned.

GoPHPdistributed system
0 likes · 15 min read
Design and Evolution of Xiaomi’s Flash‑Sale System for the 2014 Mi Fan Festival
Nightwalker Tech
Nightwalker Tech
Sep 12, 2016 · Databases

Technical Discussion on Learning Strategies, MySQL Replication, High Availability, PHP Coroutines, and Nginx Proxy

A community discussion covers practical ways to improve personal skills, detailed MySQL master‑slave and high‑availability setups, PHP coroutine mechanisms, and the behavior of Nginx when proxying image resources, providing insights into learning, database management, concurrency, and proxy configurations.

Distributed SystemsPHPmysql
0 likes · 12 min read
Technical Discussion on Learning Strategies, MySQL Replication, High Availability, PHP Coroutines, and Nginx Proxy
21CTO
21CTO
Aug 4, 2016 · Backend Development

Master WeChat Public Account Development: From Access Tokens to Interactive Bots

This guide walks you through the complete process of creating and managing a WeChat public account, covering registration, sandbox testing, access token handling, QR code generation, message verification, chatbot integration, menu creation, media upload, music search, and response handling using PHP.

PHPPublic Account
0 likes · 9 min read
Master WeChat Public Account Development: From Access Tokens to Interactive Bots
ITPUB
ITPUB
Jul 12, 2016 · Information Security

How to Prevent SQL Injection Attacks in PHP: Practical Tips and Code Examples

This article explains what SQL injection is, shows vulnerable PHP code examples, and provides concrete prevention techniques—including input validation, parameterized queries, limited database privileges, error handling, and proper escaping of special characters—to protect web applications from attacks.

PHPPrepared StatementsSQL injection
0 likes · 5 min read
How to Prevent SQL Injection Attacks in PHP: Practical Tips and Code Examples
ITPUB
ITPUB
Jun 15, 2016 · Information Security

How to Exploit and Defend Against MongoDB Injection Attacks

This article explains why MongoDB is chosen, demonstrates practical PHP injection techniques against MongoDB queries, shows how to enumerate databases and collections, and provides concrete defensive measures such as using implode(), addslashes() and regex sanitization to prevent attacks.

Database SecurityDefensive CodingMongoDB
0 likes · 5 min read
How to Exploit and Defend Against MongoDB Injection Attacks
21CTO
21CTO
Jun 14, 2016 · Frontend Development

How Taobao’s Home Page Evolved: From PHP to Node and Scaling to Billions of Views

This article chronicles the evolution of Taobao’s home page—from its early PHP implementation to a modern Node‑based platform—detailing architecture, module building, performance optimizations, stability safeguards, and agile practices that enable it to serve billions of daily page views.

PHPTaobaofrontend
0 likes · 18 min read
How Taobao’s Home Page Evolved: From PHP to Node and Scaling to Billions of Views
21CTO
21CTO
May 14, 2016 · Backend Development

How to Find and Understand PHP Internal Function Definitions (e.g., strpos)

This guide walks you through locating PHP internal function definitions in the source tree, using strpos as an example, and explains the surrounding C code structure, parameter parsing, error handling, and macro usage for deeper insight into PHP's backend implementation.

PHPbackend-developmentc++
0 likes · 12 min read
How to Find and Understand PHP Internal Function Definitions (e.g., strpos)
21CTO
21CTO
May 8, 2016 · Backend Development

Mastering PHP Traits: Reuse Code Efficiently with Real-World Examples

This article explains PHP Traits—introduced in PHP 5.4—as a fine‑grained code‑reuse mechanism, illustrates their definition, shows practical examples of extracting reusable methods into traits, compares trait usage with inheritance, and offers tips for effective trait design.

Object-OrientedPHPTraits
0 likes · 7 min read
Mastering PHP Traits: Reuse Code Efficiently with Real-World Examples
21CTO
21CTO
May 7, 2016 · Backend Development

Common Nginx+PHP Pitfalls and How to Write a Clean Configuration

This article examines typical mistakes in Nginx‑PHP setups—such as misplaced index directives, misuse of the if statement, and fastcgi configuration quirks—and provides a streamlined, secure configuration example with explanations.

ConfigurationNginxPHP
0 likes · 6 min read
Common Nginx+PHP Pitfalls and How to Write a Clean Configuration
21CTO
21CTO
Apr 4, 2016 · Backend Development

How to Efficiently Fetch Hundreds of URL Titles in PHP Using Multi‑Process Design

This article explores two PHP multi‑process architectures for rapidly retrieving page titles from hundreds of URLs, comparing a simple socket‑based server with a threaded URL‑batch processor, and discusses performance trade‑offs, memory usage, and scalability considerations.

BackendPHPmultiprocessing
0 likes · 5 min read
How to Efficiently Fetch Hundreds of URL Titles in PHP Using Multi‑Process Design
21CTO
21CTO
Mar 28, 2016 · Frontend Development

How Dangdang Boosted Page Speed: Componentization, Lazy Loading, and Nginx Caching

This article details Dangdang Marketplace's comprehensive performance optimization—including component-based design, proactive data generation, asynchronous loading, lazy rendering, multi‑domain and CDN strategies, GZIP compression, and Nginx fastcgi/proxy caching—showing how these measures reduced first‑screen time to under three seconds and dramatically lowered CPU and load during high‑traffic events.

NginxPHPcaching
0 likes · 17 min read
How Dangdang Boosted Page Speed: Componentization, Lazy Loading, and Nginx Caching
Node Underground
Node Underground
Mar 25, 2016 · Backend Development

How to Implement Bigpipe with HTTP Chunked Transfer in Node.js, PHP, and Java

This article explores the Bigpipe technique for accelerating first‑screen rendering by leveraging HTTP 1.1 chunked transfer, comparing implementations in PHP, Java, Node.js (including Express and Koa), and demonstrating parallel module flushing with async patterns such as callbacks, async parallel, co, and async/await.

BigpipeHTTP chunkedNode.js
0 likes · 17 min read
How to Implement Bigpipe with HTTP Chunked Transfer in Node.js, PHP, and Java
21CTO
21CTO
Mar 24, 2016 · Backend Development

Mastering PHP cURL: How to Perform GET and POST Requests

This guide introduces PHP's cURL extension, outlines its basic workflow, and provides clear GET and POST code examples, showing how to configure options, execute requests, handle responses, and decode JSON data into arrays or objects.

HTTPJSONPHP
0 likes · 3 min read
Mastering PHP cURL: How to Perform GET and POST Requests
21CTO
21CTO
Mar 23, 2016 · Fundamentals

Master PHP Data Structures: Stack, Queue, and Min-Heap with SPL

This article explains the concept of heaps, especially min‑heaps, and demonstrates how PHP's SPL provides ready‑made implementations for stacks, queues, min‑heaps, and fixed‑size arrays with clear code examples.

Data StructuresHeapPHP
0 likes · 3 min read
Master PHP Data Structures: Stack, Queue, and Min-Heap with SPL
21CTO
21CTO
Mar 18, 2016 · R&D Management

Inside Lianjia’s Tech Team: How a Former PHP Star Drives R&D Culture and Management

In this interview, former PHP core developer Hui Xincheng shares how he leads Lianjia’s growing tech team, discusses the company’s product and hybrid‑cloud architecture, and offers insights on management, talent development, and the evolving role of technical communities in today’s software industry.

PHPSoftware ArchitectureTeam Culture
0 likes · 13 min read
Inside Lianjia’s Tech Team: How a Former PHP Star Drives R&D Culture and Management
21CTO
21CTO
Mar 16, 2016 · Databases

How to Horizontally Partition Tables Using MD5 Hashing and Bit Shifting

This article explains two practical horizontal sharding techniques for large‑scale projects—MD5‑based hashing and bit‑shifting of user IDs—detailing their PHP implementations, scalability limits, and how to extend table counts as data grows.

MD5 hashingPHPbit shifting
0 likes · 5 min read
How to Horizontally Partition Tables Using MD5 Hashing and Bit Shifting
Meitu Technology
Meitu Technology
Mar 11, 2016 · Backend Development

Building a High-Availability PHP Service Architecture for Meipai

The talk explains how Meipai engineered a high‑availability PHP backend—leveraging PHP’s ecosystem while overcoming performance bottlenecks—to reliably serve hundreds of millions of users, detailing the architectural decisions, scaling challenges, and key lessons learned during rapid user growth.

Backend ArchitectureMeipaiPHP
0 likes · 2 min read
Building a High-Availability PHP Service Architecture for Meipai
21CTO
21CTO
Mar 10, 2016 · Backend Development

15 Essential PHP Libraries Every Backend Developer Should Know

This article introduces fifteen powerful PHP libraries—from testing tools like Mink to HTTP clients such as Requests and caching solutions like Stash—highlighting their key features and how they can accelerate backend development and improve web application performance.

PHPWeb Developmentbackend-development
0 likes · 8 min read
15 Essential PHP Libraries Every Backend Developer Should Know
MaGe Linux Operations
MaGe Linux Operations
Mar 10, 2016 · Cloud Native

Docker in the Real World: Lessons, Pitfalls, and the Quest for a Perfect Container Architecture

After experimenting with Docker to isolate PHP‑FPM and Nginx services, a small startup shares the challenges they faced—from link networking quirks and service discovery with Consul, to CI image builds, log handling, monitoring, and the hidden costs of container restarts—offering practical insights for anyone adopting containerization.

ConsulNginxPHP
0 likes · 8 min read
Docker in the Real World: Lessons, Pitfalls, and the Quest for a Perfect Container Architecture
21CTO
21CTO
Mar 1, 2016 · Fundamentals

How Unified Coding Standards Boost PHP Code Quality

This article explains why consistent PHP coding standards—covering line breaks, spacing, naming, and habits like method chaining and array formatting—are essential for readable, maintainable code, and offers practical examples and tools to enforce them across a development team.

PHPbackend-developmentbest practices
0 likes · 6 min read
How Unified Coding Standards Boost PHP Code Quality
Architect
Architect
Feb 25, 2016 · Information Security

Proper Password Hashing: Salting, Key Stretching, and Secure Implementation

This article explains why simple password hashing is insufficient, describes common attacks such as dictionary, brute‑force, lookup‑table and rainbow‑table attacks, and provides best‑practice guidance—including random salts, CSPRNGs, key‑stretching algorithms like PBKDF2, bcrypt and scrypt—and complete PHP reference implementations.

PBKDF2PHPcryptography
0 likes · 34 min read
Proper Password Hashing: Salting, Key Stretching, and Secure Implementation
21CTO
21CTO
Feb 14, 2016 · Backend Development

Implementing WeChat Red Packet Random Distribution in PHP

This article explores the logic behind WeChat's red‑packet random algorithm, outlines the required constraints, and provides step‑by‑step PHP code that generates fair, varied payouts for a fixed total amount among multiple recipients.

BackendPHPWeChat
0 likes · 6 min read
Implementing WeChat Red Packet Random Distribution in PHP
21CTO
21CTO
Feb 8, 2016 · Fundamentals

Master Defensive Programming in PHP: Prevent Errors Before They Happen

This article explains defensive programming concepts for PHP developers, illustrating why anticipating failures, never trusting user input, avoiding assumptions, maintaining narrow focus, and keeping consistent syntax can dramatically reduce bugs and improve code reliability.

Error HandlingPHPcoding best practices
0 likes · 8 min read
Master Defensive Programming in PHP: Prevent Errors Before They Happen
21CTO
21CTO
Feb 8, 2016 · Backend Development

10 Proven PHP Best Practices Every Developer Should Follow

This article presents ten expert‑backed PHP best practices—from choosing the right use cases and leveraging multi‑table storage for scalability, to security, caching, IDE usage, filtering functions, framework decisions, batch processing, and enabling error reporting—offering actionable guidance for building robust, high‑performance web applications.

IDEPHPWeb Development
0 likes · 11 min read
10 Proven PHP Best Practices Every Developer Should Follow
21CTO
21CTO
Jan 29, 2016 · Backend Development

How to Create a PHP Extension Object: Step‑by‑Step Guide

This tutorial walks through creating a PHP extension object by defining a zend_class_entry, naming the class, registering it, declaring properties, and implementing methods, complete with full example code and a PHP usage snippet.

ExtensionObject CreationPHP
0 likes · 4 min read
How to Create a PHP Extension Object: Step‑by‑Step Guide
21CTO
21CTO
Jan 28, 2016 · Databases

Boost PHP Web Performance with MySQL Asynchronous Queries

By leveraging MySQL's asynchronous query capabilities via mysqlnd and PHP's generator-based coroutines, developers can execute multiple SELECT statements concurrently, reducing total query time from around two seconds to roughly one second, though this approach must consider server load and thread overhead.

AsynchronousPHPcoroutine
0 likes · 7 min read
Boost PHP Web Performance with MySQL Asynchronous Queries
21CTO
21CTO
Nov 27, 2015 · Backend Development

How Baiba’s Backend Powers 90% Mobile Commerce: Architecture Deep Dive

This article details Baiba's evolution from a simple flash‑sale site to a mobile‑centric e‑commerce platform, describing its backend flow through CDN, caching layers, PHP‑FPM, memcached, Redis, MySQL, search engines, monitoring tools, deployment pipelines, and future plans for service‑orientation and hybrid apps.

BackendDeploymentPHP
0 likes · 15 min read
How Baiba’s Backend Powers 90% Mobile Commerce: Architecture Deep Dive
21CTO
21CTO
Nov 22, 2015 · Backend Development

Boost Your PHP Projects with 30 Essential Best Practices

Learn a comprehensive set of 30 practical PHP best‑practice tips covering file inclusion, path handling, debugging, output buffering, security, performance, database interactions, session management, and code organization to improve maintainability, efficiency, and reliability of your backend applications.

PHPbackend-developmentbest practices
0 likes · 26 min read
Boost Your PHP Projects with 30 Essential Best Practices
ITPUB
ITPUB
Nov 13, 2015 · Backend Development

Eliminate Code Segregation: Writing Cleaner, More Elegant PHP

This article shows how to transform fragmented PHP snippets—such as disjointed loops, scattered timing code, and split error‑code definitions—into cohesive, readable structures using for‑loops, functional helpers, shutdown callbacks, and modern constant arrays, improving both aesthetics and maintainability.

BackendError HandlingPHP
0 likes · 5 min read
Eliminate Code Segregation: Writing Cleaner, More Elegant PHP
21CTO
21CTO
Nov 8, 2015 · Backend Development

Inside PHP: Unveiling the Engine, Extensions, SAPI and Memory Management

This article explores PHP's underlying architecture, covering its design philosophy, four‑layer system (Zend engine, extensions, SAPI, and applications), execution flow with opcodes, core data structures like HashTable, and the internal representation of variables via zval, providing deep insight for backend developers.

Memory ManagementPHPZend engine
0 likes · 16 min read
Inside PHP: Unveiling the Engine, Extensions, SAPI and Memory Management
21CTO
21CTO
Nov 7, 2015 · Backend Development

Explore the Ultimate PHP Library Collection: 55 Essential Tools for Developers

This comprehensive, curated list presents over fifty PHP libraries and tools spanning websites, dependency management, frameworks, micro‑frameworks, routing, templating, static site generators, HTTP clients, middleware, URL handling, email, file operations, streams, dependency injection, imaging, testing, continuous integration, documentation, security, password handling, code analysis, architecture, debugging, build tools, task runners, navigation, asset management, geolocation, date‑time, events, logging, e‑commerce, PDF, office formats, databases, migrations, NoSQL, queues, search, command‑line utilities, authentication, markup, string manipulation, numeric handling, validation, REST/APIs, caching, data structures, notifications, deployment, internationalisation, third‑party APIs, extensions and miscellaneous utilities, providing developers with a one‑stop reference for PHP development.

PHPResourcesopen‑source
0 likes · 33 min read
Explore the Ultimate PHP Library Collection: 55 Essential Tools for Developers
21CTO
21CTO
Nov 7, 2015 · Backend Development

PHP 7 vs HHVM: Which Backend Engine Delivers Faster Performance?

An in‑depth comparison of PHP 7 and Facebook’s HHVM examines their origins, compilation approaches, real‑world benchmark results on platforms like WordPress and Drupal, and adoption by companies such as Wikimedia and Etsy, helping developers decide which backend runtime best suits their web projects.

PHPWeb Developmentbackend-development
0 likes · 10 min read
PHP 7 vs HHVM: Which Backend Engine Delivers Faster Performance?
21CTO
21CTO
Nov 6, 2015 · Backend Development

Boost PHP Productivity: Top Automated Testing Frameworks You Must Know

This article explains why automated testing is essential for PHP developers, outlines the benefits of test-driven development, and reviews the most popular PHP testing frameworks—including PHPUnit, Codeception, Behat, PHPSpec, SimpleTest, Storyplayer, Peridot, Atoum, Kahlan, and Selenium—to help you choose the right tool.

Automated TestingCodeceptionPHP
0 likes · 8 min read
Boost PHP Productivity: Top Automated Testing Frameworks You Must Know
21CTO
21CTO
Nov 4, 2015 · Information Security

Master PHP Encryption: From MD5 to OpenSSL Asymmetric Techniques

This article explains PHP's various encryption methods, covering one-way hash functions like MD5 and SHA1, symmetric algorithms, the rarely used crypt() function, and detailed implementations of asymmetric encryption with OpenSSL, including key generation, encryption, decryption, and practical code examples.

HashOpenSSLPHP
0 likes · 15 min read
Master PHP Encryption: From MD5 to OpenSSL Asymmetric Techniques
Qunar Tech Salon
Qunar Tech Salon
Oct 26, 2015 · Operations

Diagnosing High CPU Usage in PHP Processes with strace

This article demonstrates how to use strace, including its -c, -T, and -e options, to identify kernel‑level system calls such as clone that cause high CPU consumption in PHP processes on a Linux server, providing step‑by‑step commands and interpretation of the results.

LinuxPHPPerformance debugging
0 likes · 4 min read
Diagnosing High CPU Usage in PHP Processes with strace
21CTO
21CTO
Oct 21, 2015 · Backend Development

Boost PHP Performance: Practical Tips to Speed Up Your Scripts

This guide explains how to improve PHP script performance by upgrading the PHP version, leveraging caching and output buffering, avoiding unnecessary getters/setters and variable copies, and replacing per‑iteration SQL queries with batch operations, all illustrated with clear code examples.

Code RefactoringPHPoptimization
0 likes · 6 min read
Boost PHP Performance: Practical Tips to Speed Up Your Scripts
21CTO
21CTO
Oct 13, 2015 · Backend Development

PHP 7 vs HHVM: Which Runtime Delivers Faster Web Performance?

This article compares PHP 7 and HHVM, explaining their origins, how they parse and execute code, presenting benchmark results for WordPress and Drupal, listing companies that use HHVM, and discussing future prospects to help developers choose the best backend runtime.

BackendPHPWeb Development
0 likes · 9 min read
PHP 7 vs HHVM: Which Runtime Delivers Faster Web Performance?
21CTO
21CTO
Oct 9, 2015 · Big Data

33 Open-Source Web Crawlers to Supercharge Your Data Collection

This article compiles 33 notable open‑source web crawler projects across multiple programming languages, detailing their core features, licensing, supported platforms, and typical use cases, helping developers choose the right tool for large‑scale data harvesting and analysis.

C++Data ExtractionPHP
0 likes · 22 min read
33 Open-Source Web Crawlers to Supercharge Your Data Collection
21CTO
21CTO
Oct 6, 2015 · Backend Development

15 Essential PHP Libraries Every Backend Developer Should Know

This article introduces fifteen powerful PHP libraries—from testing tools like Mink and Parody to networking utilities such as Requests and Unirest—detailing each library’s purpose, key features, and usage, helping backend developers accelerate web development and enhance application capabilities.

PHPWeb Developmentbackend-development
0 likes · 9 min read
15 Essential PHP Libraries Every Backend Developer Should Know
21CTO
21CTO
Oct 1, 2015 · Backend Development

How to Scrape 1.1 Million Zhihu Users with PHP cURL, Multi‑Threading, and Redis

This tutorial walks through collecting over a million Zhihu user profiles using PHP on Ubuntu, handling cookies, bypassing image hot‑link protection, scaling requests with curl_multi, de‑duplicating MySQL inserts, and coordinating work with Redis and multi‑process pcntl for efficient large‑scale web scraping.

LinuxMulti‑processingPHP
0 likes · 15 min read
How to Scrape 1.1 Million Zhihu Users with PHP cURL, Multi‑Threading, and Redis
21CTO
21CTO
Sep 27, 2015 · Backend Development

Understanding PHP’s Strict Types: Scalar Type Declarations Explained

This article explains the PHP RFC that introduces four new scalar type declarations (int, float, string, bool) and the declare(strict_types=1) directive, comparing strict and weak type checking, showing code examples, and discussing the rationale and impact on existing codebases.

PHPbackend-developmentdeclare directive
0 likes · 12 min read
Understanding PHP’s Strict Types: Scalar Type Declarations Explained
21CTO
21CTO
Sep 25, 2015 · Backend Development

Building a High‑Performance Asynchronous MySQL Proxy with Swoole

This article explains how to create an asynchronous MySQL proxy server using the Swoole extension, detailing connection pooling, idle/busy management, request queuing, and providing a complete PHP implementation that reduces MySQL load and network overhead for PHP applications.

AsynchronousConnection PoolPHP
0 likes · 6 min read
Building a High‑Performance Asynchronous MySQL Proxy with Swoole
21CTO
21CTO
Sep 22, 2015 · Backend Development

How to Integrate Protocol Buffers with PHP over Binary TCP Sockets

This article explains how to add Protocol Buffer communication to a PHP web system, covering library setup, proto file adjustments, code generation, binary TCP handling with pack/unpack, and the switch from read_line to fread for reliable socket reads.

Binary SocketPHPPack
0 likes · 5 min read
How to Integrate Protocol Buffers with PHP over Binary TCP Sockets
21CTO
21CTO
Sep 19, 2015 · Backend Development

Can PHP + Swoole Compete with C++ for High‑Concurrency Servers?

The article examines why PHP’s lack of native multithreading isn’t a fatal flaw for high‑concurrency servers when paired with Swoole, compares process‑based and thread‑based models, debunks performance myths, and highlights the productivity benefits of using PHP over C++.

PHPSwoolebackend-development
0 likes · 5 min read
Can PHP + Swoole Compete with C++ for High‑Concurrency Servers?
Architect
Architect
Sep 18, 2015 · Databases

Implementing Asynchronous MySQL Queries in PHP Using Coroutines

This article explains how to achieve asynchronous MySQL queries in PHP by leveraging mysqlnd's async functions and PHP generators, compares synchronous and asynchronous execution times, provides a complete coroutine‑based example, and discusses performance considerations and limitations.

AsynchronousCoroutinesDatabase Performance
0 likes · 7 min read
Implementing Asynchronous MySQL Queries in PHP Using Coroutines
21CTO
21CTO
Sep 10, 2015 · Backend Development

Why Laravel Dominates PHP: Key Features and Best Practices

This article explores why Laravel has become the most successful PHP framework, highlighting its modular architecture, extensive package ecosystem, micro‑service support through Lumen, elegant routing, middleware security, caching, authentication, task automation, encryption, ORM, testing, and queue handling.

LaravelMicroservicesPHP
0 likes · 7 min read
Why Laravel Dominates PHP: Key Features and Best Practices
21CTO
21CTO
Sep 8, 2015 · Backend Development

Can PHP + Swoole Rival C++ for High‑Concurrency Servers? Myths Explained

Although many claim PHP with Swoole is unsuitable for high‑concurrency servers compared to C++, this article explains how PHP’s process model, Swoole’s Table and Atomic features, and careful design can achieve comparable performance while offering faster development, and discusses the trade‑offs of multithreading versus multiprocessing.

PHPSwoolebackend-development
0 likes · 6 min read
Can PHP + Swoole Rival C++ for High‑Concurrency Servers? Myths Explained
21CTO
21CTO
Sep 7, 2015 · Backend Development

Why PHP 7.0 RC2 Doubles Performance Over PHP 5 – Key Features Explained

PHP 7.0 RC2, released Friday, delivers up to 2‑2.5× speed improvements over PHP 5.3‑5.6 while using less memory, introduces a new Zend Engine with 64‑bit support, exception‑based fatal errors, null coalescing, combined comparison, return and scalar type declarations, anonymous classes, and more.

PHPPHP 7backend-development
0 likes · 2 min read
Why PHP 7.0 RC2 Doubles Performance Over PHP 5 – Key Features Explained

MySQL Performance Optimization Tips for Web Applications

This article presents a comprehensive set of MySQL performance optimization techniques for web applications, covering query caching, EXPLAIN analysis, LIMIT usage, indexing strategies, join type consistency, avoiding ORDER BY RAND(), selective column retrieval, proper primary keys, ENUM usage, prepared statements, unbuffered queries, IP storage, fixed‑length tables, vertical partitioning, batch deletions, column size reduction, storage engine selection, ORM benefits, and persistent connections.

Database OptimizationPHPmysql
0 likes · 21 min read
MySQL Performance Optimization Tips for Web Applications
Java High-Performance Architecture
Java High-Performance Architecture
Jul 19, 2015 · Backend Development

How to Share Sessions Across Multiple Servers: 3 Proven Methods

With growing traffic, single-server sites struggle, so developers must share user sessions across multiple servers; this article explains three popular approaches—cookie-based, database-based, and Memcache-based session sharing—detailing their principles, advantages, and drawbacks to help choose the right solution.

BackendPHPload balancing
0 likes · 4 min read
How to Share Sessions Across Multiple Servers: 3 Proven Methods
Art of Distributed System Architecture Design
Art of Distributed System Architecture Design
Jul 19, 2015 · Information Security

25 Essential PHP Security Best Practices for Hardened Web Servers

This guide presents 25 practical PHP security best practices, covering configuration files, module management, error handling, file uploads, remote code execution, SQL safety, resource limits, user permissions, SELinux, firewall rules, and additional tools, to help administrators harden PHP deployments on Linux servers.

BackendLinuxPHP
0 likes · 27 min read
25 Essential PHP Security Best Practices for Hardened Web Servers
Baidu Tech Salon
Baidu Tech Salon
Dec 29, 2014 · Backend Development

Useful PHP Code Snippets for Common Tasks

These practical PHP snippets demonstrate how to implement a blacklist filter, generate random colors, download files, retrieve Alexa/Google page rank, force file downloads, display Gravatars, fetch RSS subscriber counts, calculate time‑ago strings, crop images, and check website availability, streamlining everyday development tasks.

PHPbackend-developmentcode snippets
0 likes · 10 min read
Useful PHP Code Snippets for Common Tasks
Baidu Tech Salon
Baidu Tech Salon
Nov 13, 2014 · Backend Development

Top 11 Must‑Know PHP Interview Questions and Answers

This article compiles the eleven most frequently asked PHP interview questions, covering fundamentals like what PHP is, MVC architecture, CSS inclusion methods, inheritance limits, echo vs print, GET vs POST, image size functions, PEAR, video upload, error types, constants, and form submission without a submit button.

BackendPHPanswers
0 likes · 6 min read
Top 11 Must‑Know PHP Interview Questions and Answers
Baidu Tech Salon
Baidu Tech Salon
Sep 16, 2014 · Backend Development

50 Proven PHP Performance Tweaks to Speed Up Your Code

This article compiles 50 practical PHP performance tips—from using single quotes and static methods to leveraging opcode caching and memcached—detailing how each adjustment can noticeably improve execution speed, memory usage, and overall efficiency of web applications.

BackendPHPbest practices
0 likes · 11 min read
50 Proven PHP Performance Tweaks to Speed Up Your Code
Baidu Tech Salon
Baidu Tech Salon
Aug 5, 2014 · Backend Development

A Tale of Bug Fixing: Thinking Beyond the Immediate Solution

After a rushed fix for a division‑by‑zero bug caused incorrect results, the team learns to validate data at its source, adopt proper validation frameworks, and step back to understand underlying requirements, emphasizing that thoughtful design outweighs quick code patches.

PHPbackend-developmentbug fixing
0 likes · 6 min read
A Tale of Bug Fixing: Thinking Beyond the Immediate Solution
Baidu Tech Salon
Baidu Tech Salon
May 14, 2014 · Big Data

FOSS Skills and In-Demand IT Technologies for Career Success

The article warns that mastering Free Open Source Software—from cloud and big‑data tools like OpenStack, Hadoop and NoSQL to web technologies such as Drupal, PHP, HTML5 and jQuery, mobile app development, popular programming languages, and security certifications—will become essential for IT job seekers, prompting universities to embed FOSS curricula.

FOSSHadoopIT skills
0 likes · 6 min read
FOSS Skills and In-Demand IT Technologies for Career Success