Tagged articles

PHP

3032 articles · Page 6 of 31
php Courses
php Courses
Jul 4, 2025 · Operations

Automate PHP Deployment with Jenkins Pipeline: Step-by-Step Guide

Learn how to set up Jenkins Pipeline for continuous integration and deployment of PHP applications, covering prerequisite installations, plugin configuration, Jenkinsfile creation with stages for checkout, build, test, and deploy, and executing the pipeline to automate packaging and deployment.

AutomationCI/CDJenkins
0 likes · 5 min read
Automate PHP Deployment with Jenkins Pipeline: Step-by-Step Guide
php Courses
php Courses
Jul 4, 2025 · Backend Development

Mastering PHP’s is_float(): Syntax, Usage, and Real-World Examples

This guide explains PHP’s is_float() function, covering its syntax, how it determines whether a variable is a floating‑point number, including return values, example outputs, and a note on using is_numeric() for broader numeric checks, helping developers avoid type‑related errors.

PHPType Checkingfloat
0 likes · 4 min read
Mastering PHP’s is_float(): Syntax, Usage, and Real-World Examples
php Courses
php Courses
Jul 4, 2025 · Backend Development

Mastering PHP’s array_unique(): Remove Duplicates Efficiently

This article explains how PHP’s built‑in array_unique() function works, shows syntax and code examples, and demonstrates practical scenarios such as data cleaning, user input validation, and re‑indexing arrays to efficiently remove duplicate values.

PHParray_uniquecode examples
0 likes · 6 min read
Mastering PHP’s array_unique(): Remove Duplicates Efficiently
php Courses
php Courses
Jul 3, 2025 · Artificial Intelligence

Build a PHP Camera Emotion Detector with FFmpeg and Fer2013

This guide walks you through installing necessary drivers and libraries, capturing webcam frames with PHP and FFmpeg, and using the Fer2013 model to recognize facial emotions, providing a complete example that displays both the image and detected mood on a web page.

AIEmotion RecognitionFFmpeg
0 likes · 5 min read
Build a PHP Camera Emotion Detector with FFmpeg and Fer2013
php Courses
php Courses
Jul 3, 2025 · Backend Development

Mastering PHP curl_setopt: Set Options for HTTP Requests

This article explains how to use PHP's curl_setopt function to configure cURL sessions, covering its syntax, parameters, return values, and a complete example that demonstrates sending a GET request with custom options and handling the response.

PHPbackendcurl
0 likes · 4 min read
Mastering PHP curl_setopt: Set Options for HTTP Requests
php Courses
php Courses
Jul 2, 2025 · Backend Development

Master PHP’s file() Function: Read Files into Arrays Efficiently

This guide explains how PHP’s file() function reads an entire file into an array, details its syntax and parameters, demonstrates basic and flag‑enhanced usage with code examples, and highlights important behaviors such as automatic newline handling.

ArrayFile HandlingFile Reading
0 likes · 4 min read
Master PHP’s file() Function: Read Files into Arrays Efficiently
php Courses
php Courses
Jul 2, 2025 · Databases

8 Proven PHP Database Query Optimization Techniques to Boost Performance

This article presents eight practical, proven techniques—such as prepared statements, proper indexing, selective column retrieval, pagination, efficient joins, query caching, batch operations, and EXPLAIN analysis—to dramatically improve the performance of database queries in PHP web applications, reducing load times and server strain.

IndexingPHPPerformance
0 likes · 6 min read
8 Proven PHP Database Query Optimization Techniques to Boost Performance
php Courses
php Courses
Jul 2, 2025 · Backend Development

How to Safely Use PHP’s is_callable() to Verify Functions and Methods

This article explains how PHP's is_callable() function determines whether a function or method can be invoked, describes its one‑ and two‑argument signatures, and provides clear code examples for checking both standalone functions and class methods, helping developers write more robust code.

Code ExampleFunctionPHP
0 likes · 4 min read
How to Safely Use PHP’s is_callable() to Verify Functions and Methods
php Courses
php Courses
Jul 2, 2025 · Backend Development

How Function Objects Affect PHP Performance: Memory, Binding, and Call Overhead

This article examines the performance implications of using function objects in PHP, highlighting higher memory usage, late‑binding costs, and indirect call overhead, and provides a concrete benchmark comparing traditional functions with function objects to illustrate the trade‑offs.

Code ReusabilityFunction ObjectsMemory Overhead
0 likes · 3 min read
How Function Objects Affect PHP Performance: Memory, Binding, and Call Overhead
php Courses
php Courses
Jul 1, 2025 · Backend Development

Master PHP’s basename() Function: Extract Filenames Quickly

This article explains how PHP's basename() function works, details its syntax and parameters, and demonstrates three practical examples—including handling suffix removal and cross‑platform path considerations—to help developers efficiently extract filenames from file paths.

File PathPHPbasename
0 likes · 4 min read
Master PHP’s basename() Function: Extract Filenames Quickly
21CTO
21CTO
Jun 28, 2025 · Backend Development

Why PHP Still Thrives After 30 Years: History, Modern Features, and Future Directions

Celebrating PHP's 30th anniversary, this article traces its evolution from a simple CGI tool to a modern, type‑safe language, examines the impact of major frameworks like Laravel and Symfony, explores the shift toward JavaScript in WordPress, and looks ahead to innovations such as FrankenPHP and Swoole.

FrankenPHPPHPType System
0 likes · 10 min read
Why PHP Still Thrives After 30 Years: History, Modern Features, and Future Directions
Open Source Tech Hub
Open Source Tech Hub
Jun 25, 2025 · Backend Development

How ThinkPHP Evolved Over 20 Years to Shape China’s PHP Landscape

This article chronicles the 20‑year journey of the ThinkPHP framework—from its 2006 origins as FCS through its golden 3.x era, the disruptive 5.x rewrite, and the mature 6.x‑8.x evolution—highlighting its community impact, AI initiatives, and ongoing commitment to simplicity amid modern web challenges.

Chinese Web DevelopmentFramework EvolutionPHP
0 likes · 10 min read
How ThinkPHP Evolved Over 20 Years to Shape China’s PHP Landscape
php Courses
php Courses
Jun 25, 2025 · Backend Development

How to Compute Large Integer Modular Inverses in PHP with GMP

This guide explains how to install the GMP extension, load it in PHP, and use the gmp_invert function to calculate modular inverses of large integers, providing a practical solution for cryptographic and number‑theoretic problems.

GMPPHPbig integers
0 likes · 4 min read
How to Compute Large Integer Modular Inverses in PHP with GMP
Open Source Tech Hub
Open Source Tech Hub
Jun 21, 2025 · Backend Development

Achieving 280k QPS with Webman 2.0: 100‑Concurrent Load Test on Ubuntu

This guide walks through setting up an Ubuntu 22.04 server, installing PHP and Composer, deploying the Webman 2.0 framework, and using ApacheBench to issue 100,000 requests with 100 concurrent keep‑alive connections, achieving roughly 280,000 QPS and demonstrating the framework’s high‑throughput performance.

PHPWebmanapachebench
0 likes · 2 min read
Achieving 280k QPS with Webman 2.0: 100‑Concurrent Load Test on Ubuntu
Raymond Ops
Raymond Ops
Jun 20, 2025 · Operations

Automate LNMP Deployment with Ansible Playbooks: Step‑by‑Step Guide

This tutorial walks you through installing Ansible, preparing inventory, creating reusable variables, and writing a comprehensive playbook that automates the deployment and configuration of Nginx, MySQL, and PHP on multiple CentOS 8 hosts, complete with service setup and firewall adjustments.

LNMPPHP
0 likes · 18 min read
Automate LNMP Deployment with Ansible Playbooks: Step‑by‑Step Guide
php Courses
php Courses
Jun 20, 2025 · Backend Development

Master Multibyte String Cutting in PHP with mb_substr – Examples & Tips

The article explains PHP's mb_substr() function, detailing its syntax, parameters, and how it correctly handles multibyte characters, with multiple code examples and notes on edge cases, making it essential for developers working on internationalized backend projects.

PHPString Manipulationbackend
0 likes · 3 min read
Master Multibyte String Cutting in PHP with mb_substr – Examples & Tips
php Courses
php Courses
Jun 20, 2025 · Backend Development

Master PHP’s str_replace(): From Basics to Advanced Tricks

This article explains PHP’s native str_replace() function, covering its syntax, basic usage, and advanced techniques such as array replacements, case‑insensitive replacements with str_ireplace(), and retrieving the number of replacements performed, all illustrated with clear code examples.

PHPString Manipulationbackend-development
0 likes · 5 min read
Master PHP’s str_replace(): From Basics to Advanced Tricks
php Courses
php Courses
Jun 19, 2025 · Backend Development

Master PHP Regex: How to Use preg_match, preg_replace, and More

This guide explains PHP’s regular expression functions—including preg_match, preg_match_all, preg_replace, and preg_split—detailing their syntax, required parameters, and practical code examples, while also covering advanced regex meta‑characters and symbols to enhance string matching and data processing.

PHPString Manipulationpreg_match
0 likes · 7 min read
Master PHP Regex: How to Use preg_match, preg_replace, and More
php Courses
php Courses
Jun 19, 2025 · Backend Development

Boost Your PHP Projects: Essential Features and Performance Optimizations

This article outlines key PHP functionalities such as user authentication, database optimization, file handling, frontend‑backend interaction, and error logging, and provides practical tips to improve security, performance, and overall quality of PHP web applications.

AuthenticationPHPPerformance
0 likes · 6 min read
Boost Your PHP Projects: Essential Features and Performance Optimizations
php Courses
php Courses
Jun 18, 2025 · Backend Development

Master PHP’s is_float(): Detect Floats with Simple Code Examples

This guide explains PHP’s is_float() function, showing how it determines whether a variable is a float, with clear code examples for simple variables and arrays, and highlights important nuances such as strict type checking and automatic conversion behavior.

PHPType Checkingfloat
0 likes · 5 min read
Master PHP’s is_float(): Detect Floats with Simple Code Examples
php Courses
php Courses
Jun 18, 2025 · Backend Development

Master PHP’s glob() Function: Powerful File Pattern Matching Explained

This article explains PHP’s glob() function, detailing its syntax, parameters, and flags, and provides practical code examples for matching files using wildcards, brace expansion, recursive patterns, and handling edge cases such as empty results and case sensitivity.

PHPcode examplesfile-matching
0 likes · 4 min read
Master PHP’s glob() Function: Powerful File Pattern Matching Explained
php Courses
php Courses
Jun 18, 2025 · Information Security

Why Most PHP Auth Systems Are Insecure and How to Build a Truly Safe One

This article reveals common security flaws in typical PHP authentication implementations—such as misconceptions about session safety, weak password storage, inadequate CSRF protection, missing rate limiting, and lack of multi‑factor authentication—and provides concrete best‑practice steps, including modern password hashing, strict session management, HTTPS enforcement, comprehensive CSRF defenses, intelligent rate limiting, MFA support, and regular security audits.

CSRFMFAPHP
0 likes · 5 min read
Why Most PHP Auth Systems Are Insecure and How to Build a Truly Safe One
php Courses
php Courses
Jun 17, 2025 · Backend Development

How to Retrieve and Use File Last Access Time with PHP's fileatime()

This article explains the PHP fileatime() function, its syntax, parameters, and return value, and provides practical examples for retrieving a file's last access timestamp, formatting it, and using it for file management tasks such as cleanup based on inactivity.

PHPbackend developmentfile access time
0 likes · 4 min read
How to Retrieve and Use File Last Access Time with PHP's fileatime()
php Courses
php Courses
Jun 12, 2025 · Backend Development

Mastering PHP curl_errno(): Retrieve and Handle cURL Error Codes

Learn how to use PHP's curl_errno() function to obtain cURL request error codes, understand common error numbers, and implement robust error handling with practical code examples that initialize a cURL handle, execute requests, check for errors, and close the handle.

PHPbackendcurl
0 likes · 4 min read
Mastering PHP curl_errno(): Retrieve and Handle cURL Error Codes
php Courses
php Courses
Jun 12, 2025 · Backend Development

Master PHP’s ftell(): How to Get File Pointer Position with Code Examples

This article explains how to use PHP's ftell() function to retrieve the current file pointer position, covering its signature, parameters, return values, and providing a practical code example that reads the first ten bytes of a file and displays the pointer offset.

File HandlingPHPfile-pointer
0 likes · 4 min read
Master PHP’s ftell(): How to Get File Pointer Position with Code Examples
php Courses
php Courses
Jun 11, 2025 · Backend Development

PHP vs WordPress: Which Should Power Your Next Web Project?

An in‑depth comparison of PHP and WordPress examines their strengths, weaknesses, ideal use cases, performance and security considerations, and shows how developers can choose or combine them based on project requirements, team expertise, and long‑term maintenance goals.

CMSPHPPerformance
0 likes · 8 min read
PHP vs WordPress: Which Should Power Your Next Web Project?
php Courses
php Courses
Jun 10, 2025 · Backend Development

How to Automate Architecture Testing in PHP Projects for Cleaner Code

This article explains what architecture testing is, why PHP projects need it, introduces tools like Deptrac, PHPArch and PHPMD, shows common testing scenarios, and provides best practices for integrating automated architecture tests into CI/CD pipelines to improve code quality and maintainability.

CI/CDPHPStatic Analysis
0 likes · 6 min read
How to Automate Architecture Testing in PHP Projects for Cleaner Code
php Courses
php Courses
Jun 9, 2025 · Backend Development

Master PHP’s is_file(): Check Files and Paths Like a Pro

This article explains how the PHP is_file() function works, shows its syntax, and provides clear code examples for checking whether a given path exists and is a regular file, while also noting its limitations and the alternative is_dir() function.

File HandlingPHPis_file
0 likes · 3 min read
Master PHP’s is_file(): Check Files and Paths Like a Pro
php Courses
php Courses
Jun 9, 2025 · Backend Development

Master Advanced Dependency Injection Techniques in Modern PHP

This article explores the core concepts, benefits, and advanced implementations of Dependency Injection in modern PHP, covering constructor, setter, and interface injection, autowiring, contextual and lazy injection, container patterns like factories, decorators, conditional registration, and best practices for performance, testing, and integration with other design patterns.

Design PatternsPHPPerformance
0 likes · 6 min read
Master Advanced Dependency Injection Techniques in Modern PHP
php Courses
php Courses
Jun 6, 2025 · Backend Development

Master PHP’s str_split(): Split Strings into Characters Easily

Learn how to use PHP’s str_split() function to divide strings into individual characters or custom-sized chunks, with clear syntax explanations, practical examples—including splitting “Hello World” and generating numeric codes—plus tips for handling default and optional parameters.

PHPString Manipulationbackend
0 likes · 4 min read
Master PHP’s str_split(): Split Strings into Characters Easily
php Courses
php Courses
Jun 5, 2025 · Backend Development

What Exciting New Features Will PHP 8.5 Bring to Developers?

PHP 8.5 introduces a suite of enhancements focused on developer experience, including an expanded constructor property promotion with default values and readonly, smarter match expressions with pattern matching, a native pipe operator for fluent function chaining, stricter never return type handling, faster autoloading and OPcache, plus new standard library functions such as str_contains_all and improved array_key_first/last.

8.5PHPSyntax
0 likes · 7 min read
What Exciting New Features Will PHP 8.5 Bring to Developers?
php Courses
php Courses
Jun 4, 2025 · Backend Development

Detecting Duplicate Elements in an Array with PHP

This article explains how to determine whether an integer array contains any duplicate values using a PHP solution that iterates the array, stores seen elements in an associative map, and returns true on the first repeat, with O(n) time and space complexity.

AlgorithmArrayPHP
0 likes · 4 min read
Detecting Duplicate Elements in an Array with PHP
php Courses
php Courses
Jun 3, 2025 · Backend Development

Customizing Baidu Map Styles with PHP and Baidu Map API

This article provides a step‑by‑step guide for developers to obtain a Baidu Map API key, include the API library, create a map container, initialize the map object in PHP, set a custom JSON style, and render the customized map on a web page.

Baidu MapsMap StylingPHP
0 likes · 5 min read
Customizing Baidu Map Styles with PHP and Baidu Map API
php Courses
php Courses
Jun 3, 2025 · Backend Development

Using PHP's setcookie Function to Create and Manage Cookies

This article explains how PHP's setcookie function works, describes each parameter, and provides several practical code examples for setting cookies with different lifetimes, scopes, and security options, helping developers manage client‑side data effectively.

PHPSecuritybackend
0 likes · 5 min read
Using PHP's setcookie Function to Create and Manage Cookies
php Courses
php Courses
May 30, 2025 · Backend Development

Design Principles, Best Practices, and Hidden Pitfalls of PHP Interfaces in 2025

This article examines the core design principles, modern best practices, and common hidden pitfalls of PHP interfaces in the 2025 ecosystem, providing concrete code examples and guidance on contract‑first design, single responsibility, interface segregation, dependency injection, versioning, testing, and advanced patterns such as adapters and plugin systems.

Design PrinciplesPHPbackend development
0 likes · 9 min read
Design Principles, Best Practices, and Hidden Pitfalls of PHP Interfaces in 2025
php Courses
php Courses
May 29, 2025 · Backend Development

6 Practical PHP Performance Optimization Techniques

This article outlines six practical PHP performance optimization techniques—including opcode caching, database query tuning, reducing redundant calculations, choosing efficient data structures, employing lazy loading, and leveraging built‑in functions—to help developers significantly improve the speed and scalability of their backend applications.

OPcachePHPPerformance Optimization
0 likes · 5 min read
6 Practical PHP Performance Optimization Techniques
php Courses
php Courses
May 29, 2025 · Backend Development

Fast Multiplication of Large Integers Using PHP GMP Library

This article introduces the GMP library for high‑precision arithmetic in PHP and explains a fast multiplication algorithm that reduces complexity by splitting large numbers, then provides a complete PHP implementation demonstrating recursive Karatsuba‑style multiplication for big integers.

AlgorithmGMPKaratsuba
0 likes · 4 min read
Fast Multiplication of Large Integers Using PHP GMP Library
php Courses
php Courses
May 28, 2025 · Backend Development

Using PHP mysqli_query to Execute MySQL Queries

This article explains how to use PHP's mysqli_query function to perform MySQL operations such as SELECT, INSERT, UPDATE, and DELETE, providing a step‑by‑step example with connection handling, query execution, result processing, and best‑practice notes.

DatabaseMySQLPHP
0 likes · 5 min read
Using PHP mysqli_query to Execute MySQL Queries
php Courses
php Courses
May 28, 2025 · Information Security

Understanding XSS Attacks and Prevention Methods in PHP

Cross‑Site Scripting (XSS) is a common web security vulnerability where malicious scripts are injected into pages, and this article explains typical PHP XSS scenarios, demonstrates code examples, and outlines effective mitigation techniques such as htmlspecialchars(), HTML Purifier, proper headers, secure cookies, CSP, and best practices.

Content Security PolicyInput ValidationPHP
0 likes · 5 min read
Understanding XSS Attacks and Prevention Methods in PHP
Open Source Tech Hub
Open Source Tech Hub
May 27, 2025 · Backend Development

Master MySQL Binary Packet Handling in PHP with workbunny/mysql-protocol

This guide introduces the workbunny/mysql-protocol PHP library, outlines its PHP ≥ 8.1 and optional Workerman dependencies, shows how to install it via Composer, and demonstrates using its Binary and Packet utilities for reading, writing, and manipulating MySQL protocol binary streams.

MySQLPHPbackend development
0 likes · 3 min read
Master MySQL Binary Packet Handling in PHP with workbunny/mysql-protocol
php Courses
php Courses
May 26, 2025 · Backend Development

Implementing Load‑Balancer‑Like Auto‑Decision Logic in PHP Applications

This article explores how to embed load‑balancer concepts such as intelligent request distribution, health checks, automatic failover, and dynamic strategy adjustment directly into PHP applications using algorithms like weighted round‑robin, response‑time balancing, and circuit‑breaker patterns, providing code examples and practical deployment scenarios.

FailoverPHPhealth check
0 likes · 11 min read
Implementing Load‑Balancer‑Like Auto‑Decision Logic in PHP Applications
php Courses
php Courses
May 26, 2025 · Backend Development

Using PHP file() Function to Read Files into an Array

This article explains how the PHP file() function reads a file’s contents into an array, describes its parameters, demonstrates basic usage and advanced options such as ignoring newline characters, and provides complete code examples for practical implementation.

ArrayPHPfile function
0 likes · 5 min read
Using PHP file() Function to Read Files into an Array
Open Source Tech Hub
Open Source Tech Hub
May 25, 2025 · Backend Development

How to Rate‑Limit Asynchronous Tasks with ReactPHP‑MQ

ReactPHP‑MQ provides a lightweight, SOLID‑designed queue for managing concurrent asynchronous operations, offering features like configurable concurrency limits, solid test coverage, and advanced methods such as all(), any(), and timeout handling for robust rate‑limiting in PHP applications.

Concurrency ControlPHPReactPHP
0 likes · 5 min read
How to Rate‑Limit Asynchronous Tasks with ReactPHP‑MQ
Open Source Tech Hub
Open Source Tech Hub
May 24, 2025 · Game Development

Build 2D/3D Games in PHP with Raylib Bindings – A Complete Guide

This article introduces PHP‑Raylib, the PHP binding for the Raylib game framework, outlines its key features, cross‑platform support, installation steps, and provides detailed code examples—including a basic window and a custom button—while comparing it to native Raylib.

FFIGame DevelopmentGraphics
0 likes · 7 min read
Build 2D/3D Games in PHP with Raylib Bindings – A Complete Guide
php Courses
php Courses
May 23, 2025 · Backend Development

Optimizing Exception Handling in PHP: Best Practices and Code Examples

This article explains how to improve PHP exception handling by using try‑catch blocks, custom exception classes, multiple catch clauses, finally blocks, and additional functions like throw and set_exception_handler, providing clear code samples for each technique.

PHPbackend developmentcoding best practices
0 likes · 5 min read
Optimizing Exception Handling in PHP: Best Practices and Code Examples
php Courses
php Courses
May 23, 2025 · Backend Development

Understanding and Using PHP's array_unique() Function

This article explains the PHP array_unique() function, covering its definition, parameters, implementation, usage examples, and performance optimization techniques to efficiently remove duplicate values from arrays.

PHParray_uniquebackend
0 likes · 4 min read
Understanding and Using PHP's array_unique() Function
php Courses
php Courses
May 23, 2025 · Backend Development

Deprecated PHP Functions in PHP 8 and Their Modern Replacements

This article lists the PHP functions that have been deprecated or removed in PHP 8, explains the security and performance risks of continuing to use them, and provides modern alternatives such as closures, foreach loops, PDO/MySQLi, preg_* functions, and OpenSSL.

Code RefactoringPHPbackend
0 likes · 7 min read
Deprecated PHP Functions in PHP 8 and Their Modern Replacements
php Courses
php Courses
May 22, 2025 · Backend Development

PHP Form Data Validation and Filtering Techniques

This article explains how to use PHP functions to validate required fields, email and phone formats, and to filter HTML tags, special characters, and prevent SQL injection, providing clear code examples for each technique.

Data FilteringForm ValidationPHP
0 likes · 4 min read
PHP Form Data Validation and Filtering Techniques
php Courses
php Courses
May 22, 2025 · Backend Development

Using PHP is_int() Function to Check Integer Variables

This article explains the PHP is_int() function, its syntax, return values, and provides two practical code examples demonstrating how to determine whether variables are integers, helping developers handle different data types correctly.

PHPType Checkingcode examples
0 likes · 4 min read
Using PHP is_int() Function to Check Integer Variables
php Courses
php Courses
May 22, 2025 · Backend Development

Implementing Camera Capture Functionality with PHP and HTML

This article explains how to use PHP and HTML to access a device's camera via the Media Capture API, create a simple upload form, save captured images on the server, and display them, providing a basic example for adding interactive camera functionality to web applications.

Camera APIMedia CapturePHP
0 likes · 4 min read
Implementing Camera Capture Functionality with PHP and HTML
php Courses
php Courses
May 22, 2025 · Backend Development

Building an Offline PHP API Self‑Service Terminal

This article explains how to design and implement a fully offline self‑service terminal using PHP, covering the reasons for a local solution, three‑tier architecture, UI, API layer, data storage options, security, performance optimizations, deployment strategies, and real‑world use cases.

Offline APIPHPSelf‑service terminal
0 likes · 8 min read
Building an Offline PHP API Self‑Service Terminal
php Courses
php Courses
May 21, 2025 · Frontend Development

Generating Charts with Labels and Legends using ECharts and PHP API

This article demonstrates how to integrate the open‑source ECharts library with a PHP backend to dynamically generate a labeled, legend‑enabled statistical chart, covering resource inclusion, data preparation in JSON, HTML container setup, and JavaScript configuration with init() and setOption() calls.

EChartsJavaScriptPHP
0 likes · 7 min read
Generating Charts with Labels and Legends using ECharts and PHP API
php Courses
php Courses
May 21, 2025 · Backend Development

Rebuilding a PHP Application Stack with a Single Git Commit: IaC, Docker, and CI/CD

This article explains how PHP developers can use Git, Infrastructure as Code, Docker, and CI/CD pipelines to rebuild an entire application stack with a single commit, covering IaC concepts, automated deployment scripts, PHP-specific configuration, repository structure, and integration with CI/CD tools.

CI/CDDevOpsDocker
0 likes · 5 min read
Rebuilding a PHP Application Stack with a Single Git Commit: IaC, Docker, and CI/CD
php Courses
php Courses
May 19, 2025 · Backend Development

Using PHP shuffle() to Randomly Rearrange Array Elements

This article explains the PHP shuffle() function, detailing its syntax, behavior of modifying the original indexed array, return value, usage with both indexed and associative arrays, and provides multiple code examples demonstrating random reordering and the effect on array keys.

ArrayPHPShuffle
0 likes · 5 min read
Using PHP shuffle() to Randomly Rearrange Array Elements
php Courses
php Courses
May 19, 2025 · Backend Development

Understanding and Using PHP’s dirname() Function

This article explains PHP’s built‑in dirname() function, detailing its purpose, syntax, parameters, return values, and provides multiple code examples demonstrating how to extract directory paths from absolute, relative, and Windows file paths, including handling of edge cases.

File PathPHPdirname
0 likes · 5 min read
Understanding and Using PHP’s dirname() Function
Open Source Tech Hub
Open Source Tech Hub
May 18, 2025 · Backend Development

Build Real-Time TCP and WebSocket Services with GatewayWorker on Windows

This guide introduces GatewayWorker, a PHP‑based distributed TCP long-connection framework, explains its Gateway-Worker process model, and provides step-by-step Windows demo instructions for both TCP and WebSocket protocols, highlighting deployment, code changes, testing procedures, and suitable real-time communication scenarios.

GatewayWorkerPHPTCP
0 likes · 6 min read
Build Real-Time TCP and WebSocket Services with GatewayWorker on Windows
php Courses
php Courses
May 16, 2025 · Backend Development

Using PHP rawurldecode() to Decode URL‑Encoded Strings

This article explains how the PHP rawurldecode() function decodes URL‑encoded strings, shows its syntax, provides a complete code example with expected output, and highlights the difference between rawurldecode() and urldecode() for handling special characters in web development.

PHPURL decodingbackend
0 likes · 4 min read
Using PHP rawurldecode() to Decode URL‑Encoded Strings
php Courses
php Courses
May 16, 2025 · Backend Development

Using PHP urlencode for URL Encoding of Special and Non-ASCII Characters

URL encoding ensures safe transmission of special and non‑ASCII characters in web requests, and PHP's built‑in urlencode function—illustrated with both English and Chinese examples—demonstrates how to encode strings, handle spaces, and use rawurlencode when a %20 representation is required.

PHPURL encodingurlencode
0 likes · 3 min read
Using PHP urlencode for URL Encoding of Special and Non-ASCII Characters
Open Source Tech Hub
Open Source Tech Hub
May 16, 2025 · Backend Development

Why FrankenPHP Is Revolutionizing PHP Performance and Deployment

FrankenPHP, created by Kévin Dunglas and backed by Les‑Tilleuls.coop and the PHP Foundation, embeds the PHP interpreter into Go and Caddy to simplify deployment, boost performance, lower hosting costs, support real‑time features, and offer a worker mode that dramatically speeds up Laravel, Symfony and Yii applications.

CaddyGoPHP
0 likes · 6 min read
Why FrankenPHP Is Revolutionizing PHP Performance and Deployment
php Courses
php Courses
May 15, 2025 · Backend Development

Using PHP implode() to Join Array Elements into a String

This article explains how the PHP implode() function joins array elements into a string, demonstrates its basic syntax, shows how it handles sub‑arrays, and illustrates a special usage where no separator is provided, all with clear code examples.

ArrayPHPbackend
0 likes · 5 min read
Using PHP implode() to Join Array Elements into a String
php Courses
php Courses
May 15, 2025 · Operations

Using Jenkins to Automate PHP Project Packaging and Deployment

This tutorial demonstrates how PHP developers can set up Jenkins to automate building, testing, and deploying PHP applications by installing Jenkins, creating a job, configuring the repository, environment variables, build scripts, post‑build actions, and running the job for continuous integration and delivery.

AutomationCI/CDJenkins
0 likes · 4 min read
Using Jenkins to Automate PHP Project Packaging and Deployment
php Courses
php Courses
May 15, 2025 · Backend Development

Introducing PHP 8.5’s array_first() and array_last() Functions

PHP 8.5 adds two handy functions, array_first() and array_last(), which retrieve the first and last elements of an array without altering the internal pointer, offering clearer syntax, safety, and performance benefits, along with usage examples, compatibility notes, and recommended scenarios.

PHParray_firstarray_last
0 likes · 6 min read
Introducing PHP 8.5’s array_first() and array_last() Functions
Open Source Tech Hub
Open Source Tech Hub
May 14, 2025 · Backend Development

Why the PHP Foundation Is Backing FrankenPHP: Implications for Backend Development

On May 14, 2025, the PHP Foundation announced official support for the FrankenPHP project, moving it to the PHP GitHub organization, outlining new governance, collaboration processes, and future prospects that could boost visibility, community contributions, and performance‑focused deployment options for PHP back‑end applications.

CaddyFrankenPHPGitHub
0 likes · 4 min read
Why the PHP Foundation Is Backing FrankenPHP: Implications for Backend Development
php Courses
php Courses
May 14, 2025 · Backend Development

Why Static Methods Should Be Avoided in PHP and Better Alternatives

The article explains that overusing static methods in PHP violates core OOP principles, hampers testability, creates global state, and reduces extensibility, while outlining appropriate scenarios for static usage and recommending alternatives such as dependency injection, service containers, and cautious singleton patterns.

OOPPHPstatic methods
0 likes · 6 min read
Why Static Methods Should Be Avoided in PHP and Better Alternatives
php Courses
php Courses
May 13, 2025 · Backend Development

Understanding PHP 8.0 Named Parameters: Benefits, Drawbacks, and Best Practices

This article examines PHP 8.0's named parameters feature, outlining how passing arguments by name improves readability and flexibility, while also discussing potential drawbacks such as learning curve, verbosity, and IDE dependence, and offers practical recommendations for when to adopt this syntax.

API EvolutionPHPbackend
0 likes · 6 min read
Understanding PHP 8.0 Named Parameters: Benefits, Drawbacks, and Best Practices
php Courses
php Courses
May 13, 2025 · Backend Development

Implementing Logistics Tracking and Delivery Management in PHP for E-commerce

This article provides a step‑by‑step PHP tutorial for building logistics tracking and delivery management features in an e‑commerce system, covering database schema design, code for inserting, updating, and querying tracking and delivery records, and explaining how these functions improve operational efficiency.

Delivery ManagementE‑commerceLogistics Tracking
0 likes · 5 min read
Implementing Logistics Tracking and Delivery Management in PHP for E-commerce
php Courses
php Courses
May 12, 2025 · Backend Development

Using Pattern Matching in PHP to Write Cleaner and More Maintainable Code

This article explains what pattern matching is, demonstrates how to implement it in PHP using switch statements, the new match expression, array and object destructuring, and provides advanced techniques, practical examples, advantages, and best practices for writing more declarative and maintainable backend code.

PHPPattern Matchingbackend development
0 likes · 8 min read
Using Pattern Matching in PHP to Write Cleaner and More Maintainable Code
php Courses
php Courses
May 12, 2025 · Artificial Intelligence

Anomaly Detection and Outlier Handling Using PHP and Machine Learning

This article explains how to detect and handle outliers in datasets using PHP and machine-learning techniques, covering the statistical Z-Score method and the Isolation Forest algorithm, and providing code examples for both removal and replacement of anomalous values to improve data quality and model accuracy.

Isolation ForestMachine LearningPHP
0 likes · 6 min read
Anomaly Detection and Outlier Handling Using PHP and Machine Learning
php Courses
php Courses
May 12, 2025 · Backend Development

Using PHP tmpfile() to Create and Manage Temporary Files

This article explains how the PHP tmpfile() function creates a unique temporary file that is automatically removed when the script ends, demonstrates its syntax and usage with example code, and highlights important considerations such as resource handling and manual deletion with unlink().

PHPtemporary filestmpfile
0 likes · 4 min read
Using PHP tmpfile() to Create and Manage Temporary Files
php Courses
php Courses
May 12, 2025 · Backend Development

Using PHP is_executable() to Check File Executability

This article explains the PHP is_executable() function, its definition, parameters, return values, provides code examples, discusses important considerations, and outlines common scenarios where checking a file's executability enhances security and proper file handling.

File PermissionsPHPSecurity
0 likes · 4 min read
Using PHP is_executable() to Check File Executability