Tagged articles
3002 articles
Page 23 of 31
Laravel Tech Community
Laravel Tech Community
Aug 9, 2021 · Backend Development

PHP imagecopy Function: Copying a Portion of an Image

This article explains the PHP imagecopy function, showing its signature, parameters, and how it copies a rectangular region from a source image to a destination image at specified coordinates, providing a concise reference for developers working with image manipulation in backend applications.

BackendGDPHP
0 likes · 1 min read
PHP imagecopy Function: Copying a Portion of an Image
php Courses
php Courses
Aug 9, 2021 · Databases

Interview Transcript: MySQL, Redis, PHP, and Distributed Systems Questions

The article records a video interview where the candidate answers technical questions on MySQL isolation levels, InnoDB indexing, locking, distributed locks, Redis sharding, PHP‑FPM architecture, RabbitMQ, AOP, Hyperf, and other backend topics, reflecting on the challenges faced during the session.

BackendDistributed SystemsPHP
0 likes · 7 min read
Interview Transcript: MySQL, Redis, PHP, and Distributed Systems Questions
php Courses
php Courses
Aug 5, 2021 · Backend Development

Common PHP Utility Functions for String Handling, Encryption, and Validation

This article presents a collection of practical PHP utility functions—including string truncation with ellipsis, MD5-based encryption, phone number masking, mobile, numeric and email validation, as well as recursive category handling—complete with usage scenarios and full source code to help developers quickly implement common backend tasks.

BackendPHPString Manipulation
0 likes · 8 min read
Common PHP Utility Functions for String Handling, Encryption, and Validation
Laravel Tech Community
Laravel Tech Community
Aug 4, 2021 · Backend Development

PHP imagecolorat: Retrieve Pixel Color Index Value

The article explains PHP's imagecolorat function, which returns the RGB integer of a pixel in a true‑color image using the GD library, and shows how to extract red, green, and blue components with bitwise operations through a complete code example.

BackendGDPHP
0 likes · 2 min read
PHP imagecolorat: Retrieve Pixel Color Index Value
dbaplus Community
dbaplus Community
Aug 1, 2021 · Databases

Bind Slow MySQL Queries to Resource Groups with a Simple PHP Tool

This guide introduces a PHP utility that automatically assigns slow MySQL statements (running over 10 seconds) to a dedicated CPU core using MySQL 8.0 resource groups, explaining installation, configuration, execution, and verification steps, along with required system capabilities.

Database AdministrationPHPResource Groups
0 likes · 5 min read
Bind Slow MySQL Queries to Resource Groups with a Simple PHP Tool
Laravel Tech Community
Laravel Tech Community
Jul 27, 2021 · Backend Development

PHP imagearc() Function: Drawing an Elliptical Arc

The PHP imagearc() function draws an elliptical arc on a GD image resource using specified center coordinates, width, height, start and end angles, and color, returning the transformed image on success or FALSE on failure, with a full example demonstrating its usage.

BackendGDGraphics
0 likes · 2 min read
PHP imagearc() Function: Drawing an Elliptical Arc
Laravel Tech Community
Laravel Tech Community
Jul 22, 2021 · Backend Development

image2wbmp – Output Image as WBMP in PHP

The article explains PHP's image2wbmp() function, detailing its parameters ($image, optional $filename, optional $threshold), return value, and how to output a WBMP image directly or save it to a file, and includes a complete code example.

BackendImage ProcessingPHP
0 likes · 2 min read
image2wbmp – Output Image as WBMP in PHP
Laravel Tech Community
Laravel Tech Community
Jul 20, 2021 · Backend Development

Using PHP getimagesize() to Retrieve Image Dimensions

The article explains PHP's getimagesize() function, which determines the dimensions, type, and MIME information of various image formats, describes its return values, and provides a complete code example demonstrating how to retrieve image size and output the image with appropriate headers.

BackendPHPfile-handling
0 likes · 2 min read
Using PHP getimagesize() to Retrieve Image Dimensions
IT Xianyu
IT Xianyu
Jul 19, 2021 · Backend Development

Implementing a Real‑Time Leaderboard with Redis and PHP

This article explains how to build a real‑time game leaderboard using Redis sorted sets, covering ranking categories, composite scoring formulas, dynamic updates, efficient data retrieval with pipelines, and provides a complete PHP class implementation.

BackendPHPPipeline
0 likes · 11 min read
Implementing a Real‑Time Leaderboard with Redis and PHP
Laravel Tech Community
Laravel Tech Community
Jul 18, 2021 · Backend Development

Retrieving GD Library Information with PHP's gd_info Function

This article explains how the PHP gd_info function returns an associative array describing the installed GD library's version and capabilities, provides details on its return structure, and includes a complete example demonstrating how to dump and interpret the resulting data.

PHPgd_info
0 likes · 2 min read
Retrieving GD Library Information with PHP's gd_info Function
Laravel Tech Community
Laravel Tech Community
Jul 16, 2021 · Backend Development

PHP rewinddir Function – Reset Directory Handle to Start

The PHP rewinddir function resets a directory stream resource opened by opendir() back to the beginning of the directory, returning the filename on success or FALSE on failure, and requires a valid directory handle as its sole parameter.

PHPbackend-developmentdirectory handling
0 likes · 1 min read
PHP rewinddir Function – Reset Directory Handle to Start
Laravel Tech Community
Laravel Tech Community
Jul 15, 2021 · Backend Development

PHP readdir Function: Reading Directory Entries

Provides a detailed explanation of PHP's readdir function, including its signature, parameters, return values, and example code demonstrating correct and incorrect ways to iterate through directory entries using a directory handle opened by opendir().

PHPbackend-developmentreaddir
0 likes · 2 min read
PHP readdir Function: Reading Directory Entries
Laravel Tech Community
Laravel Tech Community
Jul 7, 2021 · Backend Development

PHP chdir Function: Changing the Working Directory

This article explains PHP's chdir function, detailing its syntax, parameters, return values, and provides a practical example demonstrating how to change the current working directory and verify the change using getcwd in a script.

FilesystemPHPchdir
0 likes · 1 min read
PHP chdir Function: Changing the Working Directory
php Courses
php Courses
Jul 2, 2021 · Backend Development

Understanding PHP 8 Internal Array Structure (zend_array)

This article explains PHP 8’s internal array implementation, describing the zend_array (alias zend_array and HashTable) structure, its key‑value storage, ordering, and the detailed fields such as reference counting, flags, bucket data, and associated functions, providing code excerpts for deeper understanding.

BackendPHParray-internals
0 likes · 6 min read
Understanding PHP 8 Internal Array Structure (zend_array)
php Courses
php Courses
Jun 30, 2021 · Backend Development

Understanding PHP's zend_string Structure and Memory Management

This article explains the internal PHP7+ data structures such as _zval_struct, zend_value, and zend_string, detailing their fields, type definitions, memory layout, flexible array usage, and the associated allocation and release macros that enable efficient, binary‑safe string handling in the Zend Engine.

BackendC languageMemory Management
0 likes · 11 min read
Understanding PHP's zend_string Structure and Memory Management
php Courses
php Courses
Jun 29, 2021 · Backend Development

Analyzing PHP Core: Variables and Zend Engine Structures (Part 1)

This article introduces the PHP variable system by examining the Zend Engine's source code, covering variable naming rules, value types, reference and variable variables, file extensions in the PHP source tree, and a detailed walkthrough of the zend_types.h definitions, unions, structs, and memory‑alignment considerations.

BackendC languagePHP
0 likes · 32 min read
Analyzing PHP Core: Variables and Zend Engine Structures (Part 1)
Laravel Tech Community
Laravel Tech Community
Jun 20, 2021 · Backend Development

PHP cal_info Function: Returns Calendar Information

The cal_info() PHP function returns detailed information about a specified calendar—including month names, abbreviations, maximum days, and identifiers—or all supported calendars when no argument is given, with usage examples and output illustrated.

BackendCalendarDocumentation
0 likes · 3 min read
PHP cal_info Function: Returns Calendar Information
Laravel Tech Community
Laravel Tech Community
Jun 15, 2021 · Fundamentals

Pros and Cons of Five Popular Programming Languages: JavaScript, Haskell, Go, PHP, and Elixir

This article compares five widely used programming languages—JavaScript, Haskell, Go, PHP, and Elixir—by outlining each language’s major advantages such as rapid prototyping, strong type systems, performance, and ecosystem support, as well as notable drawbacks including dynamic typing quirks, steep learning curves, and limited language features.

ElixirGoHaskell
0 likes · 12 min read
Pros and Cons of Five Popular Programming Languages: JavaScript, Haskell, Go, PHP, and Elixir
Laravel Tech Community
Laravel Tech Community
Jun 15, 2021 · Backend Development

PDO::inTransaction – Checking If Inside a Transaction

The PDO::inTransaction method returns a boolean indicating whether the current database connection is actively inside a transaction, works only with drivers that support transactions, takes no parameters, and returns TRUE on success and FALSE on failure.

BackendPDOPHP
0 likes · 1 min read
PDO::inTransaction – Checking If Inside a Transaction
Laravel Tech Community
Laravel Tech Community
Jun 14, 2021 · Backend Development

PDO::rollBack – Rolling Back a Transaction in PHP

The article explains how the PHP PDO::rollBack() method aborts the current transaction, restores autocommit mode when needed, outlines its parameter‑less signature, return values, and provides a complete code example demonstrating transaction handling and rollback behavior.

BackendPDOPHP
0 likes · 2 min read
PDO::rollBack – Rolling Back a Transaction in PHP
Architecture Digest
Architecture Digest
Jun 13, 2021 · Backend Development

Implementing a Real-Time Leaderboard with Redis for a Mobile Game

This article explains how to build a real‑time, dual‑dimension leaderboard for a mobile tank game using Redis Sorted Sets, covering ranking types, composite score calculations, dynamic updates, efficient data retrieval with pipelines, and a complete PHP implementation.

PHPReal-TimeSorted Set
0 likes · 8 min read
Implementing a Real-Time Leaderboard with Redis for a Mobile Game
Laravel Tech Community
Laravel Tech Community
Jun 9, 2021 · Backend Development

PDO::inTransaction – Check If Inside a Transaction

PDO::inTransaction is a PHP PDO method that returns a boolean indicating whether the current database connection is actively within a transaction, applicable only to drivers that support transactions, and it takes no parameters.

BackendPDOPHP
0 likes · 1 min read
PDO::inTransaction – Check If Inside a Transaction
php Courses
php Courses
Jun 3, 2021 · Backend Development

Various PHP Tips, Tricks, and Gotchas: Parameter Order, String Operators, OpCache, Security, Reflection, and More

This article compiles a wide range of practical PHP knowledge—including function‑parameter ordering, proper salt storage, newline handling, string‑operator precedence, http_build_query quirks, OpCache basics, the HTTPOXY vulnerability, operator precedence nuances, instanceof behavior, array_map tricks, performance considerations for array functions, type‑juggling pitfalls, comparison changes in PHP 8, and different ways to merge arrays—providing code examples and references for each topic.

BackendPHPphp-operators
0 likes · 23 min read
Various PHP Tips, Tricks, and Gotchas: Parameter Order, String Operators, OpCache, Security, Reflection, and More
Laravel Tech Community
Laravel Tech Community
May 28, 2021 · Backend Development

PHP mcrypt_generic() Function for Data Encryption

The article explains PHP's mcrypt_generic() function, detailing its purpose for encrypting data, required parameters ($td as the encryption descriptor and $data as the plaintext), the need for block-size-aligned input, initialization and cleanup steps, and the nature of its returned encrypted output.

PHPencryptionmcrypt
0 likes · 2 min read
PHP mcrypt_generic() Function for Data Encryption
php Courses
php Courses
May 28, 2021 · Backend Development

Resolving the PHP Type‑Hint Error: Argument 1 Must Be an Instance of int

This article explains a confusing PHP error where a method expects an instance of int but receives an integer, analyzes three common causes—including an incorrect use statement, outdated PHP version, and unnecessary type hint—and provides concise solutions for each.

BackendPHPphp7
0 likes · 2 min read
Resolving the PHP Type‑Hint Error: Argument 1 Must Be an Instance of int
Laravel Tech Community
Laravel Tech Community
May 27, 2021 · Backend Development

PHP mcrypt_encrypt Function: Parameters, Usage, and Return Value

mcrypt_encrypt encrypts plaintext using a specified cipher, key, mode, and optional IV, returning the ciphertext as a string or FALSE on failure, with detailed explanations of each parameter—including cipher name, key length requirements, data padding, mode options, and IV usage—provided for PHP developers.

BackendPHPmcrypt
0 likes · 2 min read
PHP mcrypt_encrypt Function: Parameters, Usage, and Return Value
Laravel Tech Community
Laravel Tech Community
May 25, 2021 · Information Security

mcrypt_enc_get_block_size – Returns the Block Size of the Opened Encryption Algorithm

The mcrypt_enc_get_block_size function in PHP returns the block size, in bytes, of the encryption algorithm associated with a given encryption descriptor resource, providing essential information for handling block cipher operations and ensuring correct data padding during encryption and decryption processes.

Block SizeInformation SecurityPHP
0 likes · 1 min read
mcrypt_enc_get_block_size – Returns the Block Size of the Opened Encryption Algorithm
Laravel Tech Community
Laravel Tech Community
May 24, 2021 · Backend Development

8 Essential Built‑in PHP Functions Every Developer Should Know

This article presents eight essential built‑in PHP functions—including variable‑argument handling, file searching with glob(), memory and CPU usage monitoring, system constants, unique ID generation, serialization, and string compression—complete with clear code examples to help developers write more efficient PHP code.

Code ExamplesPHPbackend-development
0 likes · 9 min read
8 Essential Built‑in PHP Functions Every Developer Should Know
php Courses
php Courses
May 24, 2021 · Backend Development

PHP Interview Questions and Sample Code Answers

This article presents a comprehensive collection of PHP interview questions covering topics such as directory creation, Smarty template features, safe mode restrictions, file handling, regular expressions, MVC concepts, and includes complete code examples for each solution.

BackendPHPcode
0 likes · 27 min read
PHP Interview Questions and Sample Code Answers
58 Tech
58 Tech
May 21, 2021 · Backend Development

Designing High‑Concurrency Systems with PHP Object Pooling and Swoole IPC

The article explains the core idea of pooling to trade space for time, analyzes the shortcomings of in‑process connection pools in PHP‑FPM, proposes long‑connection and cross‑process pooling solutions using Swoole’s IPC mechanisms, and demonstrates significant CPU and latency improvements in a real‑world high‑concurrency backend.

Connection PoolingIPCPHP
0 likes · 9 min read
Designing High‑Concurrency Systems with PHP Object Pooling and Swoole IPC
php Courses
php Courses
May 21, 2021 · Backend Development

Using Named Parameters and Match Expressions in PHP 8

This article explains PHP 8's named parameters, how they allow flexible argument ordering, skipping defaults, variadic usage, and demonstrates the new match expression with strict typing and constructor property promotion examples.

BackendPHPmatch expression
0 likes · 3 min read
Using Named Parameters and Match Expressions in PHP 8
Laravel Tech Community
Laravel Tech Community
May 17, 2021 · Backend Development

hash_update() – Adding Data to an Active Hash Context

hash_update() is a PHP function that appends a string of data to an active hash computation context created by hash_init(), takes a resource context and a string data as parameters, and returns TRUE upon successful update of the hash digest.

HashPHPhash_update
0 likes · 1 min read
hash_update() – Adding Data to an Active Hash Context
Laravel Tech Community
Laravel Tech Community
May 14, 2021 · Backend Development

PHP hash_init: Initialize Incremental Hashing Context

The article explains PHP's hash_init function, detailing its purpose to initialize an incremental hashing context, describing its parameters (algorithm name, options, key), return value, and provides a complete example demonstrating how to compute an MD5 hash using hash_update and hash_final.

HashPHPincremental hashing
0 likes · 2 min read
PHP hash_init: Initialize Incremental Hashing Context
Didi Tech
Didi Tech
May 14, 2021 · Backend Development

Bay Flow Platform: Service‑Side API Architecture and Evolution at DiDi

DiDi’s Bay Flow platform transforms its service‑side API into a configurable, layered “travel middle‑platform” that routes front‑end requests through a flow layer and reusable ability components, using the Dukang framework’s transports, steps, and factors to support dozens of ride‑hailing categories across PHP and Go while ensuring isolation and high reuse.

Backend ArchitectureDukang frameworkPHP
0 likes · 15 min read
Bay Flow Platform: Service‑Side API Architecture and Evolution at DiDi
php Courses
php Courses
May 12, 2021 · Backend Development

Implementing Direct OSS Upload Signature in PHP

This tutorial explains how to create a lightweight PHP class for generating OSS direct‑upload signatures, describes the advantages of client‑side uploads without server bandwidth, provides the full source code, and highlights common pitfalls such as bucketHost configuration and policy newline handling.

BackendOSSPHP
0 likes · 3 min read
Implementing Direct OSS Upload Signature in PHP
Laravel Tech Community
Laravel Tech Community
May 10, 2021 · Backend Development

Using hash_file() to Generate a File Hash in PHP

This article explains PHP's hash_file() function, its parameters, return values, security use cases, and provides a complete example demonstrating how to compute an MD5 hash of a file, including code snippets and expected output.

File HashingPHPhash_file
0 likes · 3 min read
Using hash_file() to Generate a File Hash in PHP
Laravel Tech Community
Laravel Tech Community
May 10, 2021 · Backend Development

Laravel Performance Optimization: Best Practices and Tuning Techniques

This article presents a comprehensive guide to improving Laravel application performance by covering configuration caching, route caching, class map optimization, autoload optimization, session storage with Memcached, professional cache drivers, database query tuning, dataset caching, JIT compilers, and front‑end asset bundling.

BackendPHPcaching
0 likes · 7 min read
Laravel Performance Optimization: Best Practices and Tuning Techniques
Laravel Tech Community
Laravel Tech Community
May 8, 2021 · Backend Development

hash_copy() – Copying a Hash Context in PHP

The article explains PHP’s hash_copy() function, detailing its purpose of duplicating a hash context, the required $context parameter, the returned resource, and provides a complete example with code and expected output for demonstration.

HashPHPhash_copy
0 likes · 2 min read
hash_copy() – Copying a Hash Context in PHP
php Courses
php Courses
May 8, 2021 · Backend Development

Efficient CSV Export in PHP for Large Datasets

This article explains how to efficiently export large datasets to CSV files using PHP, describing the CSV format, why a simple streaming approach outperforms PHPExcel, performance expectations for 200,000 rows, and provides a complete PHP function that handles encoding, buffering, and memory‑friendly output.

BackendCSVData Export
0 likes · 3 min read
Efficient CSV Export in PHP for Large Datasets
Laravel Tech Community
Laravel Tech Community
Apr 27, 2021 · Backend Development

zip_entry_close – Close a ZIP Directory Entry (PHP)

The PHP function zip_entry_close closes a previously opened ZIP directory entry, takes a zip entry resource as its sole argument, and returns TRUE on success or FALSE on failure, providing a simple way to release resources when working with ZIP archives.

PHPfile-handling
0 likes · 1 min read
zip_entry_close – Close a ZIP Directory Entry (PHP)
Efficient Ops
Efficient Ops
Apr 26, 2021 · Information Security

Deploying WAF-FLE: A Step‑by‑Step Guide to Managing ModSecurity Logs

This article walks you through installing and configuring the open‑source WAF‑FLE console—written in PHP—to collect, search, and visualize ModSecurity logs on Apache or Nginx, covering environment setup, database creation, sensor configuration, and troubleshooting common integration issues.

ModSecurityNginxPHP
0 likes · 8 min read
Deploying WAF-FLE: A Step‑by‑Step Guide to Managing ModSecurity Logs
php Courses
php Courses
Apr 25, 2021 · Backend Development

Using PHP extract() to Convert Array Elements into Variables

This article explains the PHP extract() function, its syntax, parameters, return value, and provides two practical code examples showing how to turn associative array entries into individual variables with optional prefix handling.

BackendExtractPHP
0 likes · 4 min read
Using PHP extract() to Convert Array Elements into Variables
php Courses
php Courses
Apr 25, 2021 · Backend Development

Using PHP list() to Assign Array Values to Variables

This article explains how PHP's list() function can assign values from an indexed array to multiple variables, compares it with extract(), and provides four code examples illustrating full assignment, skipping elements, selecting a single element, and the limitation with strings.

BackendListPHP
0 likes · 3 min read
Using PHP list() to Assign Array Values to Variables
Laravel Tech Community
Laravel Tech Community
Apr 23, 2021 · Backend Development

Common Laravel and PHP Interview Questions and Answers

This article compiles frequently asked Laravel and PHP interview questions, providing concise explanations of core concepts such as the framework's architecture, routing, middleware, Eloquent ORM, service container, authentication, authorization, testing tools, and deployment practices, useful for both beginners and experienced candidates.

BackendEloquentFramework
0 likes · 23 min read
Common Laravel and PHP Interview Questions and Answers
php Courses
php Courses
Apr 23, 2021 · Backend Development

Converting Decimal Numbers to Binary in PHP with decbin()

This article explains how to use PHP's built‑in decbin() function to convert decimal integers into their binary string representation, covering the function syntax, parameter details, return limits, and providing a clear code example with expected output.

BackendBinaryConversion
0 likes · 1 min read
Converting Decimal Numbers to Binary in PHP with decbin()
php Courses
php Courses
Apr 23, 2021 · Backend Development

How to Install and Configure YASD for PHP Debugging with PhpStorm

This guide walks through installing the YASD debugging extension, adding the necessary php.ini settings, configuring PhpStorm's debug port and server path mapping, and running a PHP project (e.g., Hyperf) with breakpoints to enable remote debugging via a browser.

BackendPHPyasd
0 likes · 2 min read
How to Install and Configure YASD for PHP Debugging with PhpStorm
Laravel Tech Community
Laravel Tech Community
Apr 22, 2021 · Backend Development

zip_close() – Close a ZIP Archive File (PHP)

The PHP function zip_close() terminates a ZIP archive opened with zip_open(), taking the ZIP resource as its sole argument, performs no return value, and is essential for properly releasing file handles in backend development.

PHPbackend-developmentzip_close
0 likes · 1 min read
zip_close() – Close a ZIP Archive File (PHP)
php Courses
php Courses
Apr 22, 2021 · Backend Development

Comparing Three PHP Methods to Multiply an Integer by 1000: String Concatenation, Direct Multiplication, and 1024‑Minus‑24 Approximation

This article examines three ways to enlarge a positive integer by a factor of one thousand in PHP—concatenating "000", multiplying by 1000, and using the expression X*1024‑X*24—benchmarks each method with ten million iterations, analyses the performance results, and discusses why the binary‑based formula may be slower than direct multiplication.

BackendPHPbenchmark
0 likes · 6 min read
Comparing Three PHP Methods to Multiply an Integer by 1000: String Concatenation, Direct Multiplication, and 1024‑Minus‑24 Approximation