Tagged articles
3002 articles
Page 20 of 31
php Courses
php Courses
Aug 11, 2023 · Backend Development

Using PHP natsort() for Natural Sorting of Arrays

This article explains how PHP's natsort() function performs natural sorting on arrays, compares it with regular sort(), demonstrates case‑sensitive and case‑insensitive examples using natsort() and natcasesort(), and provides practical code snippets for developers.

ArrayPHPnatcasesort
0 likes · 5 min read
Using PHP natsort() for Natural Sorting of Arrays
php Courses
php Courses
Aug 11, 2023 · Information Security

PHP Code Security Testing: Review, Tools, and Practices

This article explains how to secure PHP web applications by performing code reviews, validating user input, preventing SQL injection and XSS, and using security testing tools such as PHP Security Scanner, OWASP ZAP, and Kali Linux, along with practical testing methods like boundary, authorization, and exception handling.

Code reviewPHPXSS
0 likes · 5 min read
PHP Code Security Testing: Review, Tools, and Practices
php Courses
php Courses
Aug 9, 2023 · Backend Development

Building a Simple User Permission Management System with PHP

This article explains how to develop a simple yet powerful user permission management system for a blog using PHP, covering database schema design, user authentication, role and permission handling, and code examples for login, permission checks, and access control.

Database designPHPRole-Based Access Control
0 likes · 7 min read
Building a Simple User Permission Management System with PHP
php Courses
php Courses
Aug 8, 2023 · Backend Development

How to Build a Secure Online Voting System with PHP

This article explains how to design and implement a PHP-based online voting system with user registration, login, vote submission, and anti‑cheating measures such as session validation, duplicate‑vote checks, transactions, captchas, and vote‑limit enforcement.

CaptchaPHPSession
0 likes · 9 min read
How to Build a Secure Online Voting System with PHP
php Courses
php Courses
Aug 5, 2023 · Backend Development

How to Use PHP's array_unshift() to Prepend Elements to an Array

This article explains the PHP array_unshift() function, its syntax, and how to prepend single or multiple values—including other arrays—to the beginning of an array, with code examples and practical usage tips, while warning about its in‑place modification behavior.

ArraysPHParray_unshift
0 likes · 4 min read
How to Use PHP's array_unshift() to Prepend Elements to an Array
php Courses
php Courses
Aug 5, 2023 · Backend Development

Implementing Microservice Architecture in PHP with Swoole and Lumen

This article explains the core principles of microservice architecture and demonstrates how to build a PHP‑based microservice system using Swoole, Lumen, RabbitMQ, and Consul, providing step‑by‑step code examples for installation, routing, and server setup.

LumenMicroservicesPHP
0 likes · 5 min read
Implementing Microservice Architecture in PHP with Swoole and Lumen
php Courses
php Courses
Aug 4, 2023 · Backend Development

Using PHP end() Function to Retrieve the Last Element of an Array

This article explains the PHP end() function, its syntax, return values, and demonstrates how to use it with both indexed and associative arrays, including combined usage with reset() for reverse traversal, providing clear code examples for each scenario.

ArrayPHPTutorial
0 likes · 5 min read
Using PHP end() Function to Retrieve the Last Element of an Array
php Courses
php Courses
Aug 4, 2023 · Backend Development

Understanding PHP reset() Function: Syntax, Examples, and Usage

This article explains PHP's reset() function, its syntax, behavior, and provides multiple code examples demonstrating how to retrieve the first array element, iterate through arrays, and combine it with end() to access both first and last elements.

ArrayPHPTutorial
0 likes · 4 min read
Understanding PHP reset() Function: Syntax, Examples, and Usage
php Courses
php Courses
Aug 4, 2023 · Backend Development

Using PHP Traits for Effective Code Reuse

This article explains how PHP traits enable code reuse by allowing reusable method blocks to be incorporated into classes, covering trait definition, simple examples, method priority rules, conflict resolution with multiple traits, and trait composition for flexible functionality sharing.

OOPPHPTraits
0 likes · 5 min read
Using PHP Traits for Effective Code Reuse
php Courses
php Courses
Aug 3, 2023 · Backend Development

Using the PHP prev() Function: Syntax, Examples, and Tips

This article explains PHP's prev() function, detailing its syntax, usage examples—including basic calls, resetting pointers with reset(), reverse array traversal with while loops—and important considerations such as boundary behavior, providing clear code snippets for developers.

ArrayPHPpointer
0 likes · 5 min read
Using the PHP prev() Function: Syntax, Examples, and Tips
Open Source Tech Hub
Open Source Tech Hub
Aug 2, 2023 · Backend Development

How NativePHP Bridges Laravel and Electron for Seamless Desktop Apps

This article explains how NativePHP integrates Laravel with Electron (and future Tauri) by providing a complete API, detailing installation, the boot process, core workflow involving Express and PHP servers, event handling, window management, and the benefits of using a unified backend‑centric approach.

Desktop AppsElectronJavaScript
0 likes · 10 min read
How NativePHP Bridges Laravel and Electron for Seamless Desktop Apps
php Courses
php Courses
Aug 1, 2023 · Backend Development

Building a Simple PHP Message Board with MySQL

This tutorial guides you through creating a simple PHP message board, covering MySQL database setup, table design, and step‑by‑step PHP scripts for displaying a form, handling submissions, and listing comments, while also noting security and extension considerations.

Message BoardPHPmysql
0 likes · 6 min read
Building a Simple PHP Message Board with MySQL
php Courses
php Courses
Aug 1, 2023 · Backend Development

Using PHP shuffle() Function to Randomly Reorder Array Elements

This article explains the PHP shuffle() function, detailing its syntax, return behavior, usage examples, and important considerations such as its effect on the original array, limitations with associative arrays, and handling of duplicate elements, providing a practical code demonstration.

ArrayPHPShuffle
0 likes · 3 min read
Using PHP shuffle() Function to Randomly Reorder Array Elements
php Courses
php Courses
Jul 30, 2023 · Operations

How to Schedule Automatic Backups for PHP Websites on CentOS

This guide explains three practical methods—using crontab, rsync, and mysqldump—to set up scheduled backups of PHP website files and databases on a CentOS server, ensuring data protection through automated daily or periodic tasks.

BackupCentOSLinux
0 likes · 4 min read
How to Schedule Automatic Backups for PHP Websites on CentOS
php Courses
php Courses
Jul 29, 2023 · Databases

Using SQLite with PHP: Comparison with MySQL and Practical Code Examples

This article compares SQLite and MySQL, outlines SQLite’s advantages and disadvantages, describes scenarios where SQLite is appropriate, and provides a step‑by‑step PHP tutorial with complete code for connecting, creating tables, inserting, querying, updating, deleting, and closing an SQLite database.

PHPSQLitecode
0 likes · 8 min read
Using SQLite with PHP: Comparison with MySQL and Practical Code Examples
php Courses
php Courses
Jul 28, 2023 · Backend Development

Using PHP's http_build_query() to Build URL Query Strings

This article explains how PHP's http_build_query() function converts associative arrays or objects into properly encoded URL query strings, covering basic usage, handling of multidimensional arrays, objects, and special characters with clear code examples.

BackendPHPURL
0 likes · 4 min read
Using PHP's http_build_query() to Build URL Query Strings
php Courses
php Courses
Jul 28, 2023 · Backend Development

Parsing and Generating XML Files in PHP

This article explains how to use PHP's built-in XML extension to parse XML files into a DOM tree and to generate XML documents programmatically, providing step‑by‑step code examples for loading, traversing, creating elements, setting attributes, and saving the resulting XML files.

DOMGenerationPHP
0 likes · 4 min read
Parsing and Generating XML Files in PHP
php Courses
php Courses
Jul 28, 2023 · Backend Development

Developing Stable and Reliable API Interfaces with ThinkPHP6

This tutorial explains how to design request/response structures, configure routing, implement controllers, perform parameter validation, and handle exceptions when building robust API endpoints using the ThinkPHP6 framework, complete with practical code examples.

APIBackendException Handling
0 likes · 6 min read
Developing Stable and Reliable API Interfaces with ThinkPHP6
php Courses
php Courses
Jul 27, 2023 · Backend Development

Understanding PHP's array_values() Function: Syntax, Usage, and Examples

This article explains PHP's array_values() function, detailing its syntax, how it reindexes array values, and provides practical examples for associative, indexed, and multidimensional arrays, demonstrating its usefulness in extracting and handling array data in backend development.

PHParray_values
0 likes · 4 min read
Understanding PHP's array_values() Function: Syntax, Usage, and Examples
php Courses
php Courses
Jul 27, 2023 · Backend Development

Extracting and Creating RAR and ZIP Archives with PHP

This article explains how to use PHP's RarArchive and ZipArchive classes to extract RAR and ZIP files, create ZIP archives, and compress folders into RAR archives, providing step‑by‑step code examples and detailed explanations for each operation.

File CompressionPHPrar
0 likes · 7 min read
Extracting and Creating RAR and ZIP Archives with PHP
php Courses
php Courses
Jul 26, 2023 · Backend Development

Using PHP's array_rand Function to Randomly Select Array Elements

This article explains the PHP array_rand function, its syntax, and demonstrates how to retrieve a single random key, multiple random keys, or a random element from an array with clear code examples and optional parameter usage.

PHParray_randrandom selection
0 likes · 5 min read
Using PHP's array_rand Function to Randomly Select Array Elements
php Courses
php Courses
Jul 25, 2023 · Backend Development

Using PHP cURL to Send Concurrent Requests to Multiple URLs

This article explains how to enable the PHP cURL extension, create an array of target URLs, and use curl_multi functions with example code to perform concurrent HTTP requests and collect their responses efficiently.

Concurrent RequestsPHPWeb Scraping
0 likes · 6 min read
Using PHP cURL to Send Concurrent Requests to Multiple URLs
php Courses
php Courses
Jul 24, 2023 · Backend Development

Using PHP's array_sum() Function to Sum Array Elements

This article explains PHP's array_sum() function, detailing its syntax, required parameters, return values, a practical code example, and important usage notes such as handling empty arrays and non‑numeric elements, helping developers reliably sum numeric values within arrays.

PHPTutorialarray sum
0 likes · 3 min read
Using PHP's array_sum() Function to Sum Array Elements
php Courses
php Courses
Jul 24, 2023 · Artificial Intelligence

Image Edge Enhancement Using PHP and OpenCV

This article explains how to perform image edge enhancement by installing PHP and the OpenCV library, importing images, invoking OpenCV functions, selecting edge detection algorithms such as Sobel or Canny, processing the image with custom code, and displaying or saving the enhanced result.

Computer VisionEdge DetectionImage Processing
0 likes · 5 min read
Image Edge Enhancement Using PHP and OpenCV
php Courses
php Courses
Jul 22, 2023 · Backend Development

How to Use the PHP array_search() Function

This tutorial explains the PHP array_search() function, covering its basic syntax, optional strict mode, searching within multidimensional arrays, and using an offset to find values after a specific position, complete with clear code examples for each scenario.

PHParray_searchmultidimensional array
0 likes · 6 min read
How to Use the PHP array_search() Function
php Courses
php Courses
Jul 21, 2023 · Backend Development

Using PHP's array_diff() Function to Compute Array Differences

This article explains how PHP's array_diff() function works, detailing its syntax, parameters, return value, and providing three practical code examples that demonstrate computing array differences for indexed and associative arrays in various.

Code ExamplesPHParray-diff
0 likes · 4 min read
Using PHP's array_diff() Function to Compute Array Differences
php Courses
php Courses
Jul 21, 2023 · Artificial Intelligence

Image Segmentation with PHP and OpenCV

This tutorial explains how to perform image segmentation using the OpenCV library in PHP, covering environment setup, library import, image loading, grayscale conversion, thresholding, result display, and saving the segmented output.

Computer VisionOpenCVPHP
0 likes · 4 min read
Image Segmentation with PHP and OpenCV
php Courses
php Courses
Jul 18, 2023 · Backend Development

Using PHP array_slice() Function: Basics, Syntax, and Practical Tips

This article explains the PHP array_slice() function, covering its basic syntax, practical examples for extracting sub‑arrays, using negative offsets, selecting specific keys with array_flip and array_intersect_key, and removing elements via array_splice, providing clear code snippets and output demonstrations.

Code ExamplesPHParray manipulation
0 likes · 5 min read
Using PHP array_slice() Function: Basics, Syntax, and Practical Tips
php Courses
php Courses
Jul 18, 2023 · Backend Development

Understanding and Using PHP's array_merge() Function

This article explains PHP's array_merge() function, its syntax, provides multiple code examples for merging two or more arrays, and highlights key considerations such as key overwriting when duplicate keys are present in PHP.

ArraysCode ExamplesPHP
0 likes · 3 min read
Understanding and Using PHP's array_merge() Function
php Courses
php Courses
Jul 18, 2023 · Artificial Intelligence

Implementing Face Recognition with PHP and OpenCV

This article provides a step‑by‑step tutorial on installing OpenCV and the PHP OpenCV extension on Ubuntu, then demonstrates how to write PHP code for face detection and recognition using OpenCV's cascade classifier and FisherFaceRecognizer, complete with example scripts and usage instructions.

Computer VisionOpenCVPHP
0 likes · 7 min read
Implementing Face Recognition with PHP and OpenCV
php Courses
php Courses
Jul 17, 2023 · Artificial Intelligence

Implementing Facial Landmark Detection with PHP and OpenCV

This tutorial demonstrates how to set up PHP and OpenCV, install necessary libraries, write and run a PHP script that detects faces and extracts facial landmarks, and saves the annotated image, providing a practical introduction to facial landmark detection in computer vision.

Computer VisionFacial Landmark DetectionImage Processing
0 likes · 5 min read
Implementing Facial Landmark Detection with PHP and OpenCV
php Courses
php Courses
Jul 17, 2023 · Backend Development

Understanding PHP's array_combine() Function: Syntax, Use Cases, and Code Examples

This article explains PHP's array_combine() function, detailing its syntax, parameters, return values, error handling, and demonstrates multiple practical applications such as creating and updating associative arrays, processing form data, and converting two‑dimensional arrays, with complete code examples.

Code ExamplesPHParray_combine
0 likes · 4 min read
Understanding PHP's array_combine() Function: Syntax, Use Cases, and Code Examples
php Courses
php Courses
Jul 14, 2023 · Backend Development

Image Cropping with PHP GD Library: Step‑by‑Step Guide

This article explains how to use PHP's GD library to verify its installation, define source and target dimensions, create a new image, crop the original using imagecopyresampled, save the result, and release resources, providing a complete step‑by‑step guide for image cropping in backend development.

GD libraryImage CroppingPHP
0 likes · 4 min read
Image Cropping with PHP GD Library: Step‑by‑Step Guide
php Courses
php Courses
Jul 13, 2023 · Backend Development

How to Keep Two Decimal Places in PHP Using round(), sprintf() and number_format()

This tutorial demonstrates three PHP techniques—round(), sprintf(), and number_format()—to format numbers with exactly two decimal places, explains the number_format() function syntax and parameters, and provides practical examples for displaying product prices with customizable decimal points and thousand separators.

DecimalPHPformatting
0 likes · 5 min read
How to Keep Two Decimal Places in PHP Using round(), sprintf() and number_format()
php Courses
php Courses
Jul 12, 2023 · Backend Development

Using strpos() and strrpos() Functions to Detect Substrings in PHP

These PHP tutorials demonstrate how to use the strpos() and strrpos() functions to detect the presence and position of characters in strings, explaining return values, providing complete code examples, and offering additional learning resources for backend development.

PHPString Functionsstrpos
0 likes · 4 min read
Using strpos() and strrpos() Functions to Detect Substrings in PHP
php Courses
php Courses
Jul 12, 2023 · Backend Development

PHP Functions for Recursively Deleting Files and Directories

This article provides PHP code examples for recursively removing files and folders, explains the use of unlink() and rmdir() functions, and demonstrates how to delete all ".svn" directories along with their contents.

BackendFilesystemPHP
0 likes · 3 min read
PHP Functions for Recursively Deleting Files and Directories
php Courses
php Courses
Jul 12, 2023 · Backend Development

Prevent Duplicate Remote Image Saving in PHP by Generating Unique Filenames

To prevent storing duplicate remote images on a PHP server, this guide explains two techniques—generating a unique filename from the image URL or from the image content using MD5 hashing—along with complete PHP code examples that check for existing files before saving.

BackendDuplicate PreventionImage Processing
0 likes · 5 min read
Prevent Duplicate Remote Image Saving in PHP by Generating Unique Filenames
php Courses
php Courses
Jul 10, 2023 · Backend Development

How to Implement Video Upload with PHP

This tutorial explains how to create a PHP-based video upload feature, covering the front‑end HTML form, detailed back‑end PHP code with an upload_file function, error handling, and demonstrates the upload process with example screenshots.

PHPTutorialVideo Upload
0 likes · 4 min read
How to Implement Video Upload with PHP
php Courses
php Courses
Jul 10, 2023 · Backend Development

How to Parse JSON Data in PHP: Encoding and Decoding Guide

This article explains what JSON is and demonstrates how to encode and decode JSON data in PHP using json_encode() and json_decode(), including examples with associative arrays, indexed arrays, JSON_FORCE_OBJECT, and iteration over decoded structures.

BackendData ParsingJSON
0 likes · 7 min read
How to Parse JSON Data in PHP: Encoding and Decoding Guide
php Courses
php Courses
Jul 10, 2023 · Backend Development

Embedding HTML in PHP: Common Methods and Code Examples

This article explains several common techniques for embedding HTML within PHP code, including echo statements, mixing PHP inside HTML files, using heredoc syntax, and including external HTML files via the include() function, each illustrated with clear code examples.

BackendEmbeddingHeredoc
0 likes · 3 min read
Embedding HTML in PHP: Common Methods and Code Examples
Architects Research Society
Architects Research Society
Jul 9, 2023 · Backend Development

Top 10 Backend Frameworks for Web Development in 2023

This article reviews the ten most popular backend frameworks for 2023—including Spring Boot, Django, Express.js, ASP.NET Core, Laravel, Ruby on Rails, Fiber, CakePHP, Flask, and Play—explaining their key features, language ecosystems, and recommended learning resources for developers of all levels.

BackendGolangNode.js
0 likes · 12 min read
Top 10 Backend Frameworks for Web Development in 2023
php Courses
php Courses
Jul 8, 2023 · Backend Development

Introduction to MQTT and PHP Implementation Example

MQTT is a lightweight, publish/subscribe messaging protocol ideal for IoT and mobile environments, offering low bandwidth usage, reliability, and TLS/SSL security, and the article provides a detailed PHP example demonstrating connection, subscription, publishing, message processing, and graceful disconnection.

IoTMQTTMessaging
0 likes · 4 min read
Introduction to MQTT and PHP Implementation Example
php Courses
php Courses
Jul 7, 2023 · Backend Development

Understanding the __invoke() Magic Method in PHP

This article explains PHP's __invoke() magic method, showing how defining __invoke() allows an object to be called like a function, demonstrates usage with a Person class example, and notes version requirements and error behavior when misused.

Magic MethodObject InvocationPHP
0 likes · 2 min read
Understanding the __invoke() Magic Method in PHP
php Courses
php Courses
Jul 7, 2023 · Backend Development

Using print_r() and var_dump() to Print Arrays in PHP

This article explains the two primary PHP functions for displaying arrays—print_r() for readable output and var_dump() for detailed type and value information—provides syntax examples, and shows the resulting output of each function.

ArrayBackendPHP
0 likes · 2 min read
Using print_r() and var_dump() to Print Arrays in PHP
Baidu Geek Talk
Baidu Geek Talk
Jul 5, 2023 · Backend Development

How Baidu Wenku App Migrated Its Backend from PHP to Go: Lessons and Results

This article details Baidu Wenku App's backend migration from a PHP‑based stack to Go, covering the motivation, technical debt, technology selection, step‑by‑step migration strategy, quality assurance practices, performance improvements, and key takeaways for large‑scale service refactoring.

GoMicroservicesPHP
0 likes · 17 min read
How Baidu Wenku App Migrated Its Backend from PHP to Go: Lessons and Results
php Courses
php Courses
Jul 5, 2023 · Backend Development

Three Ways to Download Files in PHP

The article explains three PHP methods for file downloading: a direct link, a parameter‑based redirect that checks file existence, and a streamed download using head() and fread() with proper HTTP headers, comparing their simplicity and security implications.

File DownloadPHPWeb Development
0 likes · 3 min read
Three Ways to Download Files in PHP
php Courses
php Courses
Jul 5, 2023 · Information Security

Using PHP Security Library Functions to Prevent Code Injection Attacks

This article introduces PHP security library functions such as htmlspecialchars(), htmlentities(), and mysqli_real_escape_string(), demonstrating with code examples how they filter and validate user input to prevent XSS and SQL injection attacks, while noting that additional security measures are still required.

PHPSQL injectionWeb Security
0 likes · 4 min read
Using PHP Security Library Functions to Prevent Code Injection Attacks
php Courses
php Courses
Jul 4, 2023 · Backend Development

Using substr() and mb_substr() to Extract Substrings in PHP

This article explains how PHP's substr() and mb_substr() functions work, detailing their syntax, parameter behavior for positive and negative start and length values, and provides multiple code examples demonstrating string extraction for both English and multibyte Chinese characters.

BackendPHPString Manipulation
0 likes · 6 min read
Using substr() and mb_substr() to Extract Substrings in PHP
php Courses
php Courses
Jul 3, 2023 · Backend Development

Understanding PHP's Ternary Operator

The article explains PHP's ternary operator, covering its basic syntax, equivalence to if‑else statements, usage examples, extensions with multiple statements, nesting, best practices, and common pitfalls, providing clear code illustrations for developers seeking concise conditional expressions.

Code SimplificationPHPconditional expression
0 likes · 6 min read
Understanding PHP's Ternary Operator
Laravel Tech Community
Laravel Tech Community
Jul 2, 2023 · Backend Development

How to Install ThinkPHP 8.0 and Perform an Upgrade

This guide explains the system requirements for ThinkPHP 8.0, shows how to install Composer on different operating systems, provides step‑by‑step commands to install the framework, lists the main features of the 8.0 release, and offers instructions for upgrading from earlier versions.

ComposerInstallationPHP
0 likes · 2 min read
How to Install ThinkPHP 8.0 and Perform an Upgrade
php Courses
php Courses
Jun 30, 2023 · Backend Development

Implementing API Rate Limiting in PHP with Redis

This article explains how to implement API rate limiting in PHP by connecting to Redis, defining a RateLimiter class with limitRequests method, and demonstrates usage to restrict requests per time window, while detailing the underlying logic and code examples.

API Rate LimitingPHPrate limiting
0 likes · 5 min read
Implementing API Rate Limiting in PHP with Redis
php Courses
php Courses
Jun 30, 2023 · Backend Development

10 Essential PHP String Manipulation Functions with Examples

This article introduces ten essential PHP string manipulation functions—including substr, str_replace, implode, strpos, and sprintf—explaining their purpose and providing clear code examples that demonstrate how to extract, replace, concatenate, search, split, trim, and format strings efficiently in PHP development.

PHPString Functionsimplode
0 likes · 5 min read
10 Essential PHP String Manipulation Functions with Examples
php Courses
php Courses
Jun 29, 2023 · Backend Development

Understanding PHP Dispatch Mechanism and Method Overriding

This article explains PHP's dispatch mechanism, showing how the runtime selects the appropriate method based on an object's actual class, and demonstrates polymorphism through a simple Animal‑Dog‑Cat example with complete code and output explanations.

DispatchMethod OverridingOOP
0 likes · 3 min read
Understanding PHP Dispatch Mechanism and Method Overriding
php Courses
php Courses
Jun 28, 2023 · Backend Development

Simulating Website Login with PHP cURL

This guide demonstrates how to use PHP's cURL library to programmatically log into a website by configuring the login URL, form fields, request options, handling errors, and processing the response for tasks such as data scraping or automated testing.

Login AutomationPHPWeb Scraping
0 likes · 4 min read
Simulating Website Login with PHP cURL
php Courses
php Courses
Jun 28, 2023 · Backend Development

Integrating PHP with WeChat Work: Step-by-Step Guide

This guide explains how to integrate PHP with WeChat Work by registering a corporate account, creating an application, obtaining credentials, using PHP’s HTTP requests to acquire access tokens, and sending messages or retrieving user data, including a complete code example.

APIBackend IntegrationMessaging
0 likes · 4 min read
Integrating PHP with WeChat Work: Step-by-Step Guide
php Courses
php Courses
Jun 28, 2023 · Frontend Development

Real-time Data Visualization Using PHP WebSocket and Highcharts

This tutorial explains how to build a real-time data visualization feature by setting up a PHP WebSocket server with Ratchet and displaying live data on the client side using Highcharts, covering environment setup, server and client code, and deployment considerations.

Data visualizationPHPReal-Time
0 likes · 9 min read
Real-time Data Visualization Using PHP WebSocket and Highcharts
php Courses
php Courses
Jun 28, 2023 · Backend Development

Using Micro‑Habits to Learn PHP Effectively

The article examines how micro‑habits—short, daily PHP coding or reading sessions—can exploit the spacing effect and convenience to improve retention of simple PHP knowledge, while highlighting their limitations for complex, high‑cognitive‑load skills that require deliberate, focused practice.

Micro‑habitsPHPcognitive load
0 likes · 6 min read
Using Micro‑Habits to Learn PHP Effectively
php Courses
php Courses
Jun 27, 2023 · Backend Development

Comprehensive Guide to PHP foreach Loop with Examples

This article thoroughly explains PHP's foreach loop syntax, demonstrates its use with indexed, associative, and multidimensional arrays, and provides complete code examples showing how to access values and keys in each scenario.

/loopArraysBackend
0 likes · 6 min read
Comprehensive Guide to PHP foreach Loop with Examples
php Courses
php Courses
Jun 21, 2023 · Backend Development

Using PHP to Recognize QR Codes and Output Their Content

This article explains how to use the PHP library phpqrcode (via Zxing) to read QR code images, extract their text content, and display it in a web browser, including installation steps and sample code.

PHPQR codeimage recognition
0 likes · 5 min read
Using PHP to Recognize QR Codes and Output Their Content
Laravel Tech Community
Laravel Tech Community
Jun 20, 2023 · Backend Development

Understanding PHP Magic Methods: Constructors, Destructors, Call, CallStatic, Get, Set, Isset, Unset, Sleep and Wakeup

This article explains the purpose, declaration syntax, usage rules, and practical examples of PHP's magic methods—including __construct, __destruct, __call, __callStatic, __get, __set, __isset, __unset, __sleep, and __wakeup—providing clear code snippets and output demonstrations for each.

OOPPHPmagic methods
0 likes · 16 min read
Understanding PHP Magic Methods: Constructors, Destructors, Call, CallStatic, Get, Set, Isset, Unset, Sleep and Wakeup
Laravel Tech Community
Laravel Tech Community
Jun 18, 2023 · Backend Development

Why PHP’s Reputation Is Unfair: Practices, Security, Performance, and Scalability

Although PHP has long suffered a poor reputation, modern practices, frameworks, and security measures have largely eliminated its historic pitfalls, making it a performant, scalable, and secure choice for web applications, while acknowledging its relative speed compared to compiled languages and its suitability for specific use cases.

PHPWeb Developmentperformance
0 likes · 5 min read
Why PHP’s Reputation Is Unfair: Practices, Security, Performance, and Scalability
php Courses
php Courses
Jun 18, 2023 · Backend Development

In-depth Exploration of the Swoft Microservice Framework: Features, Installation, and Performance Comparison with Laravel

This article provides a comprehensive overview of the Swoft microservice framework, detailing its high‑performance architecture, core features such as annotation routing and AOP, step‑by‑step installation, and benchmark results that demonstrate its superiority over Laravel in handling concurrent requests.

Backend FrameworkLaravel ComparisonMicroservices
0 likes · 8 min read
In-depth Exploration of the Swoft Microservice Framework: Features, Installation, and Performance Comparison with Laravel
php Courses
php Courses
Jun 14, 2023 · Backend Development

Using PHP and Selenium WebDriver for Browser-Based Web Scraping

This article explains how to install php-webdriver via Composer, set up a Selenium WebDriver instance in PHP, and write a script that automates a Chrome browser to scrape search results from Baidu, demonstrating key WebDriver APIs for element interaction and data extraction.

PHPSeleniumWeb Scraping
0 likes · 5 min read
Using PHP and Selenium WebDriver for Browser-Based Web Scraping
php Courses
php Courses
Jun 12, 2023 · Backend Development

Using ThinkPHP 6 for Email Queue Processing

This article explains how to set up and use ThinkPHP 6’s email queue functionality, covering Redis installation, queue configuration, creating a SendMailJob class, pushing jobs to the queue, and running the queue listener to improve email sending performance and reliability.

Email QueuePHPThinkPHP
0 likes · 5 min read
Using ThinkPHP 6 for Email Queue Processing
php Courses
php Courses
Jun 5, 2023 · Backend Development

Implementing Multilingual Support in PHP Web Applications

This article explains how to add multilingual support to PHP web applications by creating language files, loading them based on user preferences, using a translation function, and providing a language selector, complete with sample code for each step.

PHPWeb Developmentlocalization
0 likes · 4 min read
Implementing Multilingual Support in PHP Web Applications
php Courses
php Courses
Jun 4, 2023 · Backend Development

Building a Real-Time Audio/Video Live Streaming Project with WebRTC and Swoole

This tutorial demonstrates how to combine Swoole's high‑performance PHP WebSocket server with WebRTC's browser‑based real‑time audio/video capabilities, covering server setup, client media capture, video segmentation with FFmpeg, and complete code examples to build a functional live‑streaming application.

JavaScriptPHPSwoole
0 likes · 6 min read
Building a Real-Time Audio/Video Live Streaming Project with WebRTC and Swoole
php Courses
php Courses
May 28, 2023 · Backend Development

Implementing Single Sign-On (SSO) with PHP: A Step-by-Step Guide

This tutorial explains how to build a PHP-based single sign‑on system using a main login application, a shared authentication service backed by MySQL and Redis, and multiple external applications, providing complete code examples for database setup, login handling, session sharing, and logout.

AuthenticationPHPSSO
0 likes · 8 min read
Implementing Single Sign-On (SSO) with PHP: A Step-by-Step Guide
php Courses
php Courses
May 25, 2023 · Backend Development

Using PHP 8.0 FFI Extension to Integrate C Libraries

This article introduces PHP 8.0's built‑in FFI extension, explains its key features, demonstrates how to compile a simple C library into a shared object, and shows step‑by‑step PHP code to load the library, call its functions, and display the results.

C integrationFFIPHP
0 likes · 7 min read
Using PHP 8.0 FFI Extension to Integrate C Libraries
Laravel Tech Community
Laravel Tech Community
May 21, 2023 · Backend Development

Generating URLs in Laravel with Helper Functions

This article explains Laravel's URL helper functions, showing how to generate basic URLs, retrieve the current URL, create URLs for named routes—including routes with parameters and Eloquent models—and produce signed and temporary signed URLs for secure link handling.

LaravelPHPSigned URLs
0 likes · 5 min read
Generating URLs in Laravel with Helper Functions
php Courses
php Courses
May 20, 2023 · Information Security

Preventing Brute‑Force Attacks in PHP Applications

This article explains what brute‑force attacks are, why they threaten PHP applications, and presents three practical defenses—two‑factor authentication, enforced password policies, and brute‑force mitigation techniques—along with complete PHP code examples for each method.

PHPTwo-Factor Authenticationbrute force
0 likes · 4 min read
Preventing Brute‑Force Attacks in PHP Applications
php Courses
php Courses
May 19, 2023 · Backend Development

Best Practices for Managing REST APIs with Laravel

This article outlines best practices for building and managing RESTful APIs using Laravel, covering resource routing, API route groups, request and response handling, middleware for authentication and access control, and controller implementation, with code examples illustrating each concept.

LaravelPHPREST API
0 likes · 8 min read
Best Practices for Managing REST APIs with Laravel
php Courses
php Courses
May 19, 2023 · Backend Development

Eliminating Duplicate and Redundant Code in PHP: Refactoring Techniques

This article explains how to remove duplicate and redundant PHP code by applying refactoring principles such as the DRY rule, using functions and classes, adopting naming conventions, simplifying conditionals, and externalizing configuration, thereby improving readability, maintainability, and performance.

DRYPHPbackend-development
0 likes · 7 min read
Eliminating Duplicate and Redundant Code in PHP: Refactoring Techniques
php Courses
php Courses
May 13, 2023 · Artificial Intelligence

Implementing Face Recognition with ThinkPHP and Tencent Cloud AI

This tutorial explains how to integrate Tencent Cloud's facial recognition services with the ThinkPHP framework, covering SDK installation, API key setup, and sample code for face detection, comparison, and identification using PHP.

AIAPIPHP
0 likes · 6 min read
Implementing Face Recognition with ThinkPHP and Tencent Cloud AI