Tagged articles

PHP

3032 articles · Page 15 of 31
php Courses
php Courses
Apr 1, 2024 · Databases

Creating SQLite Database Tables with PHP: A Step-by-Step Guide

This tutorial walks through connecting to an SQLite database with PHP, creating a 'users' table using SQL, and verifying the table’s structure through PRAGMA queries, providing complete code examples for each step to help developers understand SQLite integration in web projects.

DatabasePHPSQL
0 likes · 4 min read
Creating SQLite Database Tables with PHP: A Step-by-Step Guide
Open Source Tech Hub
Open Source Tech Hub
Mar 29, 2024 · Backend Development

Building an Asynchronous UDP SIP Server with Workerman in PHP

This guide explains how to use the high‑performance Workerman framework to create a UDP‑based asynchronous SIP server in PHP, covering protocol basics, business requirements, socket handling, multi‑process deployment, heartbeat management, and sample output.

Asynchronous ServerPHPSIP
0 likes · 11 min read
Building an Asynchronous UDP SIP Server with Workerman in PHP
php Courses
php Courses
Mar 29, 2024 · Backend Development

Detecting Duplicate Elements in an Array Using PHP

This article explains how to determine whether an integer array contains duplicate values by iterating through each element, using a PHP class with a containsDuplicate method that employs an associative array for O(n) time and space complexity, and provides example inputs and detailed execution flow.

PHPduplicate detectionspace complexity
0 likes · 4 min read
Detecting Duplicate Elements in an Array Using PHP
php Courses
php Courses
Mar 29, 2024 · Backend Development

Using PHP rename() Function to Rename Files and Directories

This article explains PHP's rename() function, detailing its syntax, parameters, return values, and usage examples for renaming both files and directories, while also highlighting important considerations such as permission constraints and error handling.

PHPdirectoryrename
0 likes · 3 min read
Using PHP rename() Function to Rename Files and Directories
php Courses
php Courses
Mar 28, 2024 · Information Security

Using Cloudmersive Security API with PHP to Scan Executable Files and Prevent Threats

This guide explains how to install the Cloudmersive Security SDK, obtain a free API key, and use PHP code to configure advanced scanning options—such as disabling executable detection and customizing threat rules—to safely analyze files for malware, scripts, encrypted content, macros, and other security risks.

PHPSecurity APIfile scanning
0 likes · 6 min read
Using Cloudmersive Security API with PHP to Scan Executable Files and Prevent Threats
php Courses
php Courses
Mar 27, 2024 · Backend Development

Using PHP explode() to Split Strings into Arrays

This article explains the PHP explode() function, its syntax and parameters, and provides three practical examples showing how to split strings by spaces, commas with a limit, and empty strings, illustrating the resulting arrays and typical use cases.

ArrayPHPexplode
0 likes · 4 min read
Using PHP explode() to Split Strings into Arrays
php Courses
php Courses
Mar 26, 2024 · Backend Development

ThinkPHP 8.x Framework Course Overview and Curriculum

This course provides a comprehensive tutorial on configuring PHP environments and mastering the ThinkPHP 8.x framework, covering installation, coding standards, routing, controllers, database operations, model management, middleware, caching, validation, and deployment techniques for robust backend web development.

DatabaseMiddlewarePHP
0 likes · 6 min read
ThinkPHP 8.x Framework Course Overview and Curriculum
php Courses
php Courses
Mar 26, 2024 · Backend Development

Using curl_errno() in PHP to Retrieve cURL Error Codes

This article explains the PHP curl_errno() function, detailing its definition, usage, and return values, provides a complete example showing how to initialize a cURL handle, execute a request, check for errors, retrieve error codes, and close the handle, and lists common cURL error codes.

PHPcurlcurl_errno
0 likes · 4 min read
Using curl_errno() in PHP to Retrieve cURL Error Codes
php Courses
php Courses
Mar 26, 2024 · Backend Development

Centralized Cache Management in Laravel Using Configurable Keys and CacheBuilder

This article explains how to introduce a centralized caching system in a Laravel application by using the Cache facade, defining configurable cache keys in a dedicated config file, and creating reusable CacheBuilder and SiteCache classes to simplify key management, improve performance, and enhance maintainability.

CacheCacheBuilderConfiguration
0 likes · 9 min read
Centralized Cache Management in Laravel Using Configurable Keys and CacheBuilder
php Courses
php Courses
Mar 25, 2024 · Backend Development

Using PHP fgets() to Read Files Line by Line

This article explains how to use PHP's fgets() function to read files line by line, covering its syntax, parameters, and providing three practical code examples for basic reading, limiting byte length, and processing each line, including handling of file opening and closing.

PHPcode examplesfgets
0 likes · 6 min read
Using PHP fgets() to Read Files Line by Line
php Courses
php Courses
Mar 25, 2024 · Backend Development

Using PHP str_split to Split Strings into Character Arrays

This article explains how to use PHP's str_split function to split strings into character arrays, covering basic syntax, optional split length, and examples including simple splitting, fixed-length chunks, and handling multibyte UTF-8 characters.

ArrayPHPString Manipulation
0 likes · 4 min read
Using PHP str_split to Split Strings into Character Arrays
php Courses
php Courses
Mar 22, 2024 · Backend Development

Using PHP fputs() to Write Data to Files

This article explains the PHP fputs() function, its syntax, parameters, return values, and provides a complete example showing how to open a file with fopen(), write a string, check the result, and close the handle with fclose() to ensure proper file I/O handling.

File I/OPHPbackend development
0 likes · 3 min read
Using PHP fputs() to Write Data to Files
Open Source Tech Hub
Open Source Tech Hub
Mar 21, 2024 · Backend Development

Mastering HTTP Chunked Transfer Encoding with Workerman and JavaScript

This guide explains the HTTP chunked transfer encoding mechanism, details its format, and provides a complete PHP Workerman server and JavaScript client implementation to stream data chunk‑by‑chunk, including installation steps, code examples, and expected output.

Chunked Transfer EncodingJavaScriptPHP
0 likes · 9 min read
Mastering HTTP Chunked Transfer Encoding with Workerman and JavaScript
php Courses
php Courses
Mar 21, 2024 · Backend Development

Using PHP is_float() to Check for Float Variables

This article explains PHP's is_float() function, demonstrating how it checks whether a variable is a floating‑point number, with multiple code examples showing simple checks, array iteration, and notes on type strictness and conversion behavior.

PHPType Checkingfunctions
0 likes · 5 min read
Using PHP is_float() to Check for Float Variables
php Courses
php Courses
Mar 21, 2024 · Backend Development

Comparing Go and PHP: Similarities, Differences, and Choosing the Right Language

This article examines the popular web development languages Go and PHP, outlining their shared traits such as general-purpose use, compilation, rich libraries, and active communities, while highlighting key differences in syntax, type systems, performance, and typical use cases to guide developers in selecting the most suitable language for their projects.

GoPHPPerformance
0 likes · 5 min read
Comparing Go and PHP: Similarities, Differences, and Choosing the Right Language
php Courses
php Courses
Mar 21, 2024 · Backend Development

Using PHP glob() Function to Retrieve File Paths

This article explains the PHP glob() function, its syntax, parameters, and various usage examples—including wildcard, brace expansion, and recursive matching—to help developers efficiently retrieve file paths based on pattern matching.

PHPcode examplesfile-matching
0 likes · 4 min read
Using PHP glob() Function to Retrieve File Paths
Open Source Tech Hub
Open Source Tech Hub
Mar 21, 2024 · Backend Development

How to Install and Use the Midjourney Proxy Plugin with Webman

This guide explains how to set up the full‑function Midjourney proxy plugin on the Webman framework, covering installation, configuration, Nginx/WSS proxy examples, and detailed API endpoints for image generation, blending, describing, and task management.

MidjourneyPHPWebman
0 likes · 11 min read
How to Install and Use the Midjourney Proxy Plugin with Webman
php Courses
php Courses
Mar 19, 2024 · Backend Development

Using PHP mb_strlen() to Measure Multibyte String Length

This article explains how to use PHP's mb_strlen() function from the mbstring extension to accurately measure the length of multibyte strings, covering installation, syntax, optional encoding parameters, practical examples in Chinese and Japanese, and how to validate string length limits.

PHPValidationmbstring
0 likes · 5 min read
Using PHP mb_strlen() to Measure Multibyte String Length
php Courses
php Courses
Mar 19, 2024 · Backend Development

Implementing Change Data Capture (CDC) in Symfony Applications

This article explains the concept of Change Data Capture, outlines its real‑time analysis, replication, audit logging and event‑driven benefits, and provides three Symfony implementation approaches—Doctrine lifecycle callbacks, entity listeners, and global listeners—complete with code examples and best‑practice recommendations.

Change Data CaptureDoctrinePHP
0 likes · 14 min read
Implementing Change Data Capture (CDC) in Symfony Applications
Open Source Tech Hub
Open Source Tech Hub
Mar 18, 2024 · Artificial Intelligence

Integrating Moonshot AI Model into Webman 5.0 with PHP

This guide explains how to add Moonshot's large language model to the Webman 5.0 framework, covering feature highlights, driver and processor implementation in PHP, configuration of model mappings, role settings, and practical code snippets for seamless AI integration.

AI integrationAPI ConfigurationModel driver
0 likes · 6 min read
Integrating Moonshot AI Model into Webman 5.0 with PHP
21CTO
21CTO
Mar 18, 2024 · Backend Development

Why PHP Still Dominates Server‑Side Development in 2024

Despite criticism and a slight market dip, PHP remains the world’s most widely used server‑side language, powered by continuous updates, a massive open‑source community, major corporate adoption, and expanding roles in modern web, IoT, and AI applications.

PHPopen sourceserver-side
0 likes · 6 min read
Why PHP Still Dominates Server‑Side Development in 2024
php Courses
php Courses
Mar 18, 2024 · Backend Development

Getting the Current UNIX Timestamp in PHP and Common Use Cases

This article explains how to obtain the current UNIX timestamp in PHP using the built‑in time() function, demonstrates code examples for displaying the timestamp, calculating yesterday’s date, and sorting an array of timestamps, and discusses common scenarios where timestamps are useful.

PHPdate calculationtime function
0 likes · 4 min read
Getting the Current UNIX Timestamp in PHP and Common Use Cases
php Courses
php Courses
Mar 18, 2024 · Backend Development

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

This article explains how the PHP implode function concatenates array elements into a single string, demonstrates its default behavior and custom separator usage with clear code examples, and shows the resulting output for both comma‑separated and hyphen‑separated strings.

ArrayCodingPHP
0 likes · 3 min read
Using PHP implode() to Join Array Elements into a String
php Courses
php Courses
Mar 15, 2024 · Backend Development

Using curl_error() to Retrieve cURL Error Messages in PHP

This article explains how to use PHP's curl_error() function to retrieve and handle error messages from cURL HTTP requests, including a step‑by‑step example that creates a cURL handle, sets a URL, executes the request, checks for errors, and closes the handle.

HTTP requestPHPcurl
0 likes · 4 min read
Using curl_error() to Retrieve cURL Error Messages in PHP
php Courses
php Courses
Mar 14, 2024 · Backend Development

Using PHP chdir() to Change the Current Working Directory

This article explains the PHP chdir() function, its syntax, parameters, return values, and provides a complete example showing how to switch the script’s working directory, handle success or failure, and highlights important considerations for file‑system operations.

File OperationsPHPchdir
0 likes · 4 min read
Using PHP chdir() to Change the Current Working Directory
php Courses
php Courses
Mar 14, 2024 · Backend Development

Using PHP is_callable() to Check Callable Functions and Methods

This article explains how the PHP is_callable() function can be used to determine whether a given variable, such as a function name or method name, is callable, demonstrates its usage with a complete example, and discusses its broader applications for writing more robust backend code.

PHPcallable checkfunction existence
0 likes · 3 min read
Using PHP is_callable() to Check Callable Functions and Methods
Open Source Tech Hub
Open Source Tech Hub
Mar 13, 2024 · Artificial Intelligence

How to Use Google Gemini AI in PHP to Solve Image CAPTCHAs

This guide shows how to set up a PHP project, install the Gemini PHP client, and use Google Gemini's multimodal model to recognize text and solve image CAPTCHAs, providing complete code examples, dependency instructions, and sample outputs.

Artificial IntelligenceCAPTCHAGemini AI
0 likes · 6 min read
How to Use Google Gemini AI in PHP to Solve Image CAPTCHAs
php Courses
php Courses
Mar 13, 2024 · Backend Development

Using PHP date() Function to Format Dates and Times

This article explains PHP's date() function, detailing its syntax, parameters, common format codes, and provides example code snippets demonstrating how to retrieve and format the current date, time, year, month, and more for flexible date-time handling in backend development.

PHPdate functiondatetime formatting
0 likes · 4 min read
Using PHP date() Function to Format Dates and Times
Open Source Tech Hub
Open Source Tech Hub
Mar 12, 2024 · Artificial Intelligence

Step-by-Step Guide to Install ModelScope and Perform NLP Inference in Python & PHP

This guide walks you through setting up a Conda Python environment, installing PyTorch and the ModelScope library, running NLP pipelines for tasks like word segmentation and text classification, and calling ModelScope models from PHP using the PHPY extension, complete with code examples and troubleshooting tips.

AI InferenceModelScopeNLP
0 likes · 14 min read
Step-by-Step Guide to Install ModelScope and Perform NLP Inference in Python & PHP
php Courses
php Courses
Mar 12, 2024 · Fundamentals

Fast Multiplication of Large Integers Using PHP GMP Library

This article explains how to perform fast multiplication of large integers in PHP by leveraging the GNU Multiple Precision (GMP) library, introduces the underlying fast multiplication algorithm that reduces complexity from O(n²) to O(n log n), and provides a complete PHP code example implementing the method.

AlgorithmPHPbig integer
0 likes · 5 min read
Fast Multiplication of Large Integers Using PHP GMP Library
php Courses
php Courses
Mar 12, 2024 · Backend Development

Exploring New Features in Laravel 11: Simplified Setup, Model Casting, Configuration, Debugging, Routing, and More

Laravel 11, released on March 12, 2024, introduces streamlined setup, enhanced model casting, unified .env configuration, a Dumpable debugging trait, refactored routing, and the removal of the HTTP kernel, all aimed at improving developer productivity and building robust, scalable web applications.

PHPVersion 11Web Development
0 likes · 7 min read
Exploring New Features in Laravel 11: Simplified Setup, Model Casting, Configuration, Debugging, Routing, and More
21CTO
21CTO
Mar 11, 2024 · Backend Development

How I Slashed PHP 1B‑Row Processing Time from 25 min to 27 s

In this article the author walks through the 1 billion‑row (1brc) challenge, shows a naïve PHP implementation, profiles its bottlenecks, and incrementally applies optimizations—switching from fgetcsv to fgets, using references, adding type casts, enabling JIT and parallel processing—to reduce runtime from 25 minutes to under 30 seconds.

1B Row ChallengeJITPHP
0 likes · 12 min read
How I Slashed PHP 1B‑Row Processing Time from 25 min to 27 s
php Courses
php Courses
Mar 11, 2024 · Backend Development

Using PHP basename() Function to Extract File Names from Paths

This article explains the PHP basename() function, covering its syntax, parameters, and behavior, and provides three practical code examples demonstrating how to extract file names from absolute and relative paths and how to remove a specified suffix, while noting OS-specific considerations.

File PathPHPbasename
0 likes · 3 min read
Using PHP basename() Function to Extract File Names from Paths
php Courses
php Courses
Mar 11, 2024 · Backend Development

How to Implement Taxi Trajectory Display Using PHP and Baidu Maps API

This tutorial demonstrates how to build a taxi trajectory visualization by creating a MySQL table for track data, writing a PHP script to retrieve the data as JSON, and using Baidu Maps JavaScript API in an HTML page to render the moving paths with interactive features.

Baidu MapsJavaScriptMySQL
0 likes · 6 min read
How to Implement Taxi Trajectory Display Using PHP and Baidu Maps API
php Courses
php Courses
Mar 8, 2024 · Backend Development

Implementing Map Zoom Functionality in PHP Using AMap API

This guide walks through the step-by-step process of enabling map zoom in a web application by obtaining an AMap API key, importing the API in PHP, creating a map instance, configuring container, size, initial zoom level, adding controls, and rendering the map with complete example code.

Amap APIMap ZoomPHP
0 likes · 5 min read
Implementing Map Zoom Functionality in PHP Using AMap API
php Courses
php Courses
Mar 8, 2024 · Backend Development

How to Use PHP's urldecode() Function for URL Decoding

This article explains the concept of URL encoding and decoding, introduces PHP's urldecode() function, details its prototype and usage, provides example code for encoding and decoding parameters, highlights limitations with non‑printable characters, and suggests using rawurldecode() when needed.

PHPURL decodingurldecode
0 likes · 3 min read
How to Use PHP's urldecode() Function for URL Decoding
php Courses
php Courses
Mar 7, 2024 · Backend Development

How to Randomly Shuffle an Array in PHP Using the shuffle Function

This article explains the PHP shuffle function, its syntax, how it directly modifies an array to randomize element order, provides example code with output, and discusses important considerations such as preserving the original array and handling associative or multidimensional arrays.

ArrayPHPShuffle
0 likes · 3 min read
How to Randomly Shuffle an Array in PHP Using the shuffle Function
php Courses
php Courses
Mar 7, 2024 · Backend Development

Using PHP is_int() Function to Check Integer Variables

This article explains PHP's is_int() function, its syntax, and how it returns a boolean indicating whether a given variable is of integer type, accompanied by a complete code example demonstrating checks on integer, string, and float variables, and discusses its limitations and the alternative intval function.

PHPType Checkinginteger validation
0 likes · 3 min read
Using PHP is_int() Function to Check Integer Variables
php Courses
php Courses
Mar 7, 2024 · Backend Development

Understanding and Implementing a PHP Interpreter in C

This course introduces the background and features of PHP, explains the role and operation of the PHP interpreter, and guides learners through building core components such as lexical analysis, parsing, and a virtual machine in C, enabling hands‑on creation of a simple interpreter.

C languagePHPbackend development
0 likes · 3 min read
Understanding and Implementing a PHP Interpreter in C
php Courses
php Courses
Mar 6, 2024 · Backend Development

Understanding Inheritance in PHP: A Practical OOP Tutorial

This article explains the core concept of inheritance in object‑oriented programming using PHP, illustrating how child classes extend parent classes, inherit properties and methods, avoid code duplication, and can override functionality, with complete code examples for workers and tax calculations.

OOPPHPbackend development
0 likes · 13 min read
Understanding Inheritance in PHP: A Practical OOP Tutorial
php Courses
php Courses
Mar 5, 2024 · Backend Development

Using PHP's is_executable() Function to Check File Executability

This article explains PHP's is_executable() function, detailing its definition, parameters, return values, and providing a complete code example with explanations, usage notes, and common scenarios such as checking uploaded files, executable status, and permission verification to enhance system security.

File PermissionsPHPSecurity
0 likes · 4 min read
Using PHP's is_executable() Function to Check File Executability
php Courses
php Courses
Mar 5, 2024 · Artificial Intelligence

Anomaly Detection and Outlier Handling in PHP Using Machine Learning

This article explains how to detect and handle outliers in datasets using PHP and machine‑learning techniques, covering Z‑Score and Isolation Forest algorithms as well as methods to delete or replace anomalous values to improve data quality and model accuracy.

Isolation ForestMachine LearningPHP
0 likes · 5 min read
Anomaly Detection and Outlier Handling in PHP Using Machine Learning
php Courses
php Courses
Mar 5, 2024 · Backend Development

An Overview of Laravel: Features, Advantages, and Essential Tools

This article provides a comprehensive overview of Laravel, a PHP backend framework, detailing its core concepts, major advantages such as authentication, mail integration, caching, security, error handling, and introducing top developer tools like Valet, Tinker, Socialite, Forge, Mix, Nova, Homestead, Horizon, and Eloquent ORM.

PHPToolingWeb Framework
0 likes · 7 min read
An Overview of Laravel: Features, Advantages, and Essential Tools
php Courses
php Courses
Mar 5, 2024 · Backend Development

Using PHP's tmpfile() Function to Create and Manage Temporary Files

PHP's tmpfile() function creates a unique temporary file that is automatically deleted when closed or the script ends, and this article explains its syntax, usage examples, associated file operations like fwrite, fseek, fread, and best practices for handling temporary files.

PHPtemporary filestmpfile
0 likes · 4 min read
Using PHP's tmpfile() Function to Create and Manage Temporary Files
21CTO
21CTO
Mar 5, 2024 · Backend Development

Top 5 PHP Frameworks to Master in 2024: A Developer’s Guide

This article explores the most popular PHP frameworks for 2024, explaining what a PHP framework is, when to use one, its key advantages, and provides detailed overviews of Laravel, Symfony, CakePHP, CodeIgniter, and FuelPHP, helping developers choose the best fit for their projects.

FrameworksPHPWeb Development
0 likes · 12 min read
Top 5 PHP Frameworks to Master in 2024: A Developer’s Guide
php Courses
php Courses
Mar 4, 2024 · Backend Development

Using curl_multi_setopt() in PHP to Set Multiple cURL Options

This article explains the PHP curl_multi_setopt() function, its syntax, parameters, common options, and provides a complete example showing how to configure multiple cURL settings for efficient concurrent HTTP requests.

PHPconcurrencycurl
0 likes · 4 min read
Using curl_multi_setopt() in PHP to Set Multiple cURL Options
php Courses
php Courses
Mar 1, 2024 · Backend Development

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

This tutorial explains how to build logistics tracking and delivery management features for an e‑commerce system using PHP, covering database table creation, inserting and updating records, and querying data to display order shipment status and delivery information.

Delivery ManagementE‑commercePHP
0 likes · 6 min read
Implementing Logistics Tracking and Delivery Management in PHP for E-commerce
php Courses
php Courses
Mar 1, 2024 · Backend Development

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

This tutorial explains how to build essential logistics tracking and delivery management features for an e‑commerce system using PHP, covering database schema design, code for inserting, updating, and querying tracking and delivery records, and providing complete example snippets.

DatabaseDelivery ManagementE‑commerce
0 likes · 6 min read
Implementing Logistics Tracking and Delivery Management in PHP for E-commerce
Open Source Tech Hub
Open Source Tech Hub
Feb 29, 2024 · Backend Development

Mastering PHP-DI: A Step‑by‑Step Guide to Dependency Injection in Webman

This tutorial explains what a Dependency Injection (DI) container is, shows how to install php-di, demonstrates basic usage including container creation, automatic wiring, constructor and annotation injection, and provides custom injection techniques for the Webman framework with concrete code examples.

PHPWebmanbackend development
0 likes · 9 min read
Mastering PHP-DI: A Step‑by‑Step Guide to Dependency Injection in Webman
php Courses
php Courses
Feb 29, 2024 · Backend Development

Using PHP rsort Function to Sort Arrays in Descending Order

This article explains the PHP rsort function, detailing its syntax, parameters, and usage for sorting arrays in descending order, provides a complete code example, and outlines additional sorting flags such as SORT_NUMERIC, SORT_STRING, SORT_LOCALE_STRING, SORT_NATURAL, and SORT_FLAG_CASE.

PHParray sortingrsort
0 likes · 3 min read
Using PHP rsort Function to Sort Arrays in Descending Order
php Courses
php Courses
Feb 29, 2024 · Frontend Development

Implementing Vector Layers in AMap Using PHP

This tutorial explains how to integrate AMap's vector layer functionality into a PHP web project by setting up the API, creating a map container, initializing the map, and adding point, line, and polygon layers for rich geographic visualizations.

AmapGISPHP
0 likes · 5 min read
Implementing Vector Layers in AMap Using PHP
php Courses
php Courses
Feb 28, 2024 · Backend Development

Using PHP is_resource() to Check Resource Types

This article explains the PHP is_resource() function, its syntax, return values, and demonstrates its usage through practical examples for checking file handles, database connections, and image resources, helping developers correctly identify resource types and avoid errors.

PHPis_resourceresource handling
0 likes · 5 min read
Using PHP is_resource() to Check Resource Types
php Courses
php Courses
Feb 27, 2024 · Backend Development

Using PHP rmdir() to Delete Empty Directories

This article explains the PHP rmdir() function, detailing its syntax, parameters, return values, important usage notes, and provides a complete code example that checks for a directory’s existence before safely removing an empty folder.

PHPdirectory deletionrmdir
0 likes · 3 min read
Using PHP rmdir() to Delete Empty Directories
php Courses
php Courses
Feb 27, 2024 · Backend Development

Implementing a Simple Real-Time Chatroom with PHP and Redis

This article explains how to build a simple real-time chatroom by preparing a PHP and Redis environment, outlining user authentication, chat page design, and using Redis PUB/SUB for message publishing and subscribing, with complete code examples for both server-side and client-side implementation.

PHPReal-time Chatbackend development
0 likes · 4 min read
Implementing a Simple Real-Time Chatroom with PHP and Redis
php Courses
php Courses
Feb 27, 2024 · Backend Development

Using PHP file_put_contents() to Write Data to Files and URLs

This article explains the PHP file_put_contents() function, its parameters, and how to use it to write strings or other data to local files or remote URLs, providing syntax details and practical code examples for file creation, data writing, and error handling.

Code ExamplePHPURL writing
0 likes · 3 min read
Using PHP file_put_contents() to Write Data to Files and URLs
21CTO
21CTO
Feb 26, 2024 · Artificial Intelligence

How to Integrate Google Gemini AI into Laravel with the Gemini PHP Package

This guide shows how to use the Gemini PHP package in a Laravel application to call Google Gemini AI APIs, including text generation with Gemini Pro and multimodal image analysis with Gemini Pro Vision, complete with code examples and resource links.

API IntegrationArtificial IntelligenceGemini AI
0 likes · 3 min read
How to Integrate Google Gemini AI into Laravel with the Gemini PHP Package
JD Tech
JD Tech
Feb 26, 2024 · Backend Development

Comprehensive Guide to Large File Upload: Principles, Implementation, and Optimizations

This article explains the challenges of uploading large files over 100 MB, compares them with regular uploads, details the core principles and common problems, and presents complete front‑end chunking and back‑end merging implementations with resumable and instant upload techniques, plus mature solution recommendations.

Chunked UploadJavaScriptLarge File Upload
0 likes · 14 min read
Comprehensive Guide to Large File Upload: Principles, Implementation, and Optimizations
php Courses
php Courses
Feb 23, 2024 · Backend Development

Using PHP’s is_numeric() Function to Check Numeric Values

This article explains PHP’s is_numeric() function, detailing how it determines whether a variable is numeric, provides multiple code examples—including simple variable checks and form input validation—and discusses special cases such as trailing decimal points, helping beginners reliably validate numeric data in PHP.

PHPdata validationis_numeric
0 likes · 4 min read
Using PHP’s is_numeric() Function to Check Numeric Values
php Courses
php Courses
Feb 23, 2024 · Backend Development

Using PHP fgetc() to Read Characters from Files and User Input

This article explains PHP's fgetc() function for reading single characters from files or standard input, demonstrates opening files with fopen(), shows example code using while loops and switch statements, and provides practical usage tips for effective file and user input handling.

PHPcharacter inputcode examples
0 likes · 5 min read
Using PHP fgetc() to Read Characters from Files and User Input
php Courses
php Courses
Feb 22, 2024 · Backend Development

Using curl_multi_getcontent() to Retrieve Content from Multiple cURL Sessions in PHP

curl_multi_getcontent() is a PHP cURL function that retrieves the response content of individual handles within a multi‑handle session, and this guide explains its purpose, usage steps, and provides a complete example demonstrating initialization, execution, content extraction, and cleanup of multiple concurrent requests.

PHPbackendcurl
0 likes · 4 min read
Using curl_multi_getcontent() to Retrieve Content from Multiple cURL Sessions in PHP
php Courses
php Courses
Feb 22, 2024 · Backend Development

Using PHP's array_values() Function to Reindex Arrays

This article explains PHP's array_values() function, showing how it returns a new array with sequential numeric keys for both indexed and associative arrays, includes practical code examples, demonstrates that the returned array is a copy, and discusses typical use cases.

ArraysPHParray_values
0 likes · 4 min read
Using PHP's array_values() Function to Reindex Arrays
php Courses
php Courses
Feb 22, 2024 · Backend Development

Understanding Class Type Declarations in PHP

This article explains PHP class type declarations, using a fruit‑shopping analogy and step‑by‑step code examples that show how to define Car and CarShop classes, enforce type safety with type hints, and avoid runtime errors caused by passing incorrect object types.

PHPclass type declarationsobject-oriented programming
0 likes · 9 min read
Understanding Class Type Declarations in PHP
php Courses
php Courses
Feb 22, 2024 · Artificial Intelligence

Building Reinforcement Learning Algorithms with PHP

This article introduces reinforcement learning, explains its core concepts, and demonstrates how to implement a simple reinforcement learning algorithm in PHP using neural‑network libraries such as Keras, providing a complete code example that includes environment and agent classes.

Artificial IntelligenceCode ExamplePHP
0 likes · 4 min read
Building Reinforcement Learning Algorithms with PHP
php Courses
php Courses
Feb 21, 2024 · Backend Development

Deep Dive into Laravel Accessors and Mutators

This article provides an in‑depth exploration of Laravel’s Eloquent Accessors and Mutators, explaining their purpose, demonstrating advanced usage with price conversion, encryption, hashing, and offering practical blog‑model examples such as title casing, excerpt generation, date formatting, slug creation, and email normalization to ensure data integrity.

AccessorsEloquentMutators
0 likes · 6 min read
Deep Dive into Laravel Accessors and Mutators
php Courses
php Courses
Feb 21, 2024 · Backend Development

Why Learn PHP Object-Oriented Programming and What You Can Build

This article explains why learning object‑oriented programming in PHP is essential, outlines the benefits and capabilities it unlocks—such as building database, authentication, pagination, and search classes—and provides a detailed curriculum covering core OOP concepts, advanced features, and a student management system project.

PHPWeb Developmentbackend development
0 likes · 4 min read
Why Learn PHP Object-Oriented Programming and What You Can Build
php Courses
php Courses
Feb 21, 2024 · Backend Development

Using PHP’s is_null Function to Check for Null Variables

This article explains how the PHP built‑in function is_null can be used to determine whether a variable holds a null value, demonstrates its behavior with example code, and describes the resulting true or false outcomes for different variable types.

IS NULLPHPnull check
0 likes · 4 min read
Using PHP’s is_null Function to Check for Null Variables
php Courses
php Courses
Feb 21, 2024 · Backend Development

Using PHP's file_get_contents to Read Local and Remote Files

This article explains how to use PHP's file_get_contents function to read the contents of local files or remote URLs, covering basic usage, permission considerations, and error handling with clear code examples.

File ReadingPHPfile_get_contents
0 likes · 4 min read
Using PHP's file_get_contents to Read Local and Remote Files
php Courses
php Courses
Feb 20, 2024 · Backend Development

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

This article explains how to use PHP's built‑in file() function to read a text file into an array, demonstrates handling of newline characters, and shows how optional flags like FILE_IGNORE_NEW_LINES and FILE_SKIP_EMPTY_LINES can control line retention and empty‑line skipping.

ArraysPHPfile function
0 likes · 4 min read
Using PHP's file() Function to Read Files into an Array
php Courses
php Courses
Feb 20, 2024 · Backend Development

Using PHP fread() to Read Files: Syntax, Parameters, and Example

This article explains PHP's fread() function, detailing its syntax, parameters $handle and $length (and optional $offset), return values, and provides a complete example showing how to open a file, read its contents, output them, and close the handle.

PHPfreadtutorial
0 likes · 4 min read
Using PHP fread() to Read Files: Syntax, Parameters, and Example
php Courses
php Courses
Feb 20, 2024 · Backend Development

How Laravel Loads Environment Variables During Bootstrap

This article explains Laravel's bootstrapping process for loading environment variables, detailing each step from configuration cache checking to creating a Dotenv instance, parsing the .env file, and handling related exceptions, with code examples illustrating the workflow.

BootstrapPHPbackend
0 likes · 9 min read
How Laravel Loads Environment Variables During Bootstrap
Open Source Tech Hub
Open Source Tech Hub
Feb 19, 2024 · Backend Development

How Sqids Generates Short, URL‑Safe IDs and When to Use Them

Sqids is an open‑source library that creates short, unique, URL‑safe identifiers from one or more non‑negative integers, offering use cases like link shortening, event IDs, and custom object IDs while outlining its limitations and practical PHP examples.

PHPURL-safeencoding
0 likes · 5 min read
How Sqids Generates Short, URL‑Safe IDs and When to Use Them
Open Source Tech Hub
Open Source Tech Hub
Feb 19, 2024 · Backend Development

Why Laravel Stands Out: A Deep Dive into Its Elegant Backend Features

This article walks through Laravel's full‑stack design, showcasing Artisan commands, model generation, migrations, Eloquent relationships, routing, testing, and core container mechanics while highlighting practical code examples and the trade‑offs that make Laravel both powerful and occasionally heavyweight.

ArtisanEloquentPHP
0 likes · 25 min read
Why Laravel Stands Out: A Deep Dive into Its Elegant Backend Features
php Courses
php Courses
Feb 19, 2024 · 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 that creates a connection, runs a SELECT query, processes results, and handles errors and cleanup.

DatabaseMySQLPHP
0 likes · 4 min read
Using PHP mysqli_query to Execute MySQL Queries
php Courses
php Courses
Feb 19, 2024 · Backend Development

Course Overview: Understanding and Implementing a PHP Interpreter in C

This course introduces the background and features of PHP, explains the role and inner workings of the PHP interpreter—including lexical analysis, parsing, and the virtual machine—and guides students to implement a simple interpreter using C, enhancing their programming and problem‑solving skills.

C programmingPHPbackend development
0 likes · 4 min read
Course Overview: Understanding and Implementing a PHP Interpreter in C
php Courses
php Courses
Feb 19, 2024 · Fundamentals

Understanding Callbacks, Anonymous Functions, and Closures in PHP

This article explains the concepts of callbacks, anonymous functions, and closures in PHP, providing definitions, practical examples, and demonstrating how to implement sorting with callback functions, create inline anonymous functions, and use closures to capture external variables, highlighting their benefits for code reuse and readability.

PHPProgramming Fundamentalsanonymous function
0 likes · 7 min read
Understanding Callbacks, Anonymous Functions, and Closures in PHP
php Courses
php Courses
Feb 18, 2024 · Backend Development

Secure User Login and Logout Implementation in PHP

This article explains how to securely implement user login and logout functionality in PHP by using session management, server‑side validation, and CSRF token protection, providing sample code for authentication, session handling, and safe logout procedures.

CSRFPHPlogin
0 likes · 6 min read
Secure User Login and Logout Implementation in PHP
php Courses
php Courses
Feb 18, 2024 · Backend Development

Automating PHP Code Formatting with PHP‑CS‑Fixer and VS Code

This guide explains how to use PHP‑CS‑Fixer together with VS Code to automatically format PHP code, enforce consistent coding standards, and improve readability, maintainability, and team collaboration across growing projects.

AutomationPHPPHP CS Fixer
0 likes · 6 min read
Automating PHP Code Formatting with PHP‑CS‑Fixer and VS Code
21CTO
21CTO
Feb 13, 2024 · Backend Development

How Laravel 11 Introduces a Built‑in Health Check Route (/up)

Laravel 11 adds a default health‑check endpoint accessible via the /up route, configured in bootstrap/app.php, which dispatches a DiagnosingHealth event and returns an animated "Application up" page to verify application status.

Laravel 11PHPRouting
0 likes · 2 min read
How Laravel 11 Introduces a Built‑in Health Check Route (/up)
MaGe Linux Operations
MaGe Linux Operations
Feb 13, 2024 · Fundamentals

Understanding Optimistic vs Pessimistic Locks: When and How to Use Them

This article explains the purpose of locks in concurrent environments, compares optimistic (CAS) and pessimistic locking mechanisms, outlines their advantages, disadvantages, suitable scenarios, and provides PHP/PDO code examples demonstrating implementation and performance testing under high concurrency.

Concurrency ControlMySQLPHP
0 likes · 11 min read
Understanding Optimistic vs Pessimistic Locks: When and How to Use Them