Tagged articles

PHP

3051 articles · Page 31 of 31
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.

Coding Best PracticesPHPdefensive programming
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.

IDEPHPPerformance
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.

MySQLPHPPerformance
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.

ArchitectureBackendPHP
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.

Backend DevelopmentPHPPerformance
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.

BackendCode stylePHP
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.

PHPZend engineinternals
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.

Backend DevelopmentPHPPerformance
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.

CodeceptionPHPautomated testing
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.

PHPasymmetricencryption
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.

OptimizationPHPcode refactoring
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.

BackendPHPPerformance
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++C++Java
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.

Backend DevelopmentLibrariesPHP
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‑processingMySQL
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.

Backend DevelopmentPHPdeclare 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.

Backend DevelopmentMySQLPHP
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++.

Backend DevelopmentPHPSwoole
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.

CoroutinesMySQLPHP
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.

Backend DevelopmentLaravelMicroservices
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.

Backend DevelopmentPHPSwoole
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.

Backend DevelopmentPHPPHP 7
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.

MySQLPHPPerformance
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.

Backend DevelopmentPHPcode 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 20 PHP Frameworks of 2014 – Find the Best Fit for Your Project

This article reviews the twenty most notable PHP frameworks of 2014, describing each one's key features, performance characteristics, and typical use cases, helping developers choose the most suitable framework for building secure, efficient web applications.

FrameworksLaravelPHP
0 likes · 11 min read
Top 20 PHP Frameworks of 2014 – Find the Best Fit for Your Project
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.

BackendOptimizationPHP
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.

Backend DevelopmentBug fixingPHP
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.

Cloud ComputingFOSSHadoop
0 likes · 6 min read
FOSS Skills and In-Demand IT Technologies for Career Success
Baidu Tech Salon
Baidu Tech Salon
Mar 31, 2014 · Frontend Development

FIS vs FIS+: Understanding the Differences

FIS is a core compilation engine that defines static resource management concepts, while FIS+ builds on it to provide a full PHP‑Smarty3 solution with a complete directory structure, extra plugins for integration and security, and features like local data simulation and URL forwarding.

FISFIS+PHP
0 likes · 5 min read
FIS vs FIS+: Understanding the Differences
Baidu Tech Salon
Baidu Tech Salon
Mar 19, 2014 · Backend Development

Understanding HHVM: Facebook's High-Performance PHP Virtual Machine and Its JIT Optimization

HHVM, Facebook’s high‑performance PHP virtual machine, uses a type‑driven tracelet JIT and custom bytecode to achieve up to nine‑fold speed gains, making runtime optimization the only practical solution for Facebook’s massive codebase while requiring careful compatibility testing, memory management, and Hack language support.

Backend DevelopmentFacebookJIT
0 likes · 18 min read
Understanding HHVM: Facebook's High-Performance PHP Virtual Machine and Its JIT Optimization