Tagged articles
162 articles
Page 2 of 2
php Courses
php Courses
Dec 16, 2023 · Backend Development

Using PHP fwrite() to Write Data to Files

This article explains the PHP fwrite() function, its syntax, parameters, and provides clear examples for writing strings and serialized arrays to files, highlighting proper file opening modes and error handling.

BackendPHPTutorial
0 likes · 4 min read
Using PHP fwrite() to Write Data to Files
php Courses
php Courses
Dec 16, 2023 · Backend Development

Using PHP tempnam() to Generate Unique Temporary File Names

This article explains how the PHP tempnam() function creates unique temporary file names, describes its syntax, parameters, return values, and provides two practical code examples demonstrating usage with optional directory and prefix settings.

Backendfile-handlingtempnam
0 likes · 4 min read
Using PHP tempnam() to Generate Unique Temporary File Names
php Courses
php Courses
Dec 15, 2023 · Backend Development

Understanding and Using the PHP fseek() Function

The article explains the purpose and syntax of PHP's fseek() function, details its parameters—including file, offset, and whence options such as SEEK_SET, SEEK_CUR, and SEEK_END—provides a complete example demonstrating file opening, pointer positioning, reading, writing, and closing operations.

BackendPHPTutorial
0 likes · 4 min read
Understanding and Using the PHP fseek() Function
php Courses
php Courses
Dec 5, 2023 · Backend Development

Using PHP file_put_contents() to Write Data to Files

This article explains the PHP file_put_contents() function, covering its syntax, parameters, return values, and multiple usage examples such as writing strings, appending data, handling arrays, and using callbacks, while also offering tips for efficient file operations in backend development.

Backend DevelopmentCode ExamplesPHP
0 likes · 5 min read
Using PHP file_put_contents() to Write Data to Files
php Courses
php Courses
Nov 30, 2023 · Backend Development

Using PHP file_put_contents() to Write Data to Files

This article explains the PHP file_put_contents() function, its syntax, parameters, return values, and provides practical examples for writing strings, appending data, writing arrays, and using callbacks to dynamically generate file content.

BackendCode ExampleTutorial
0 likes · 5 min read
Using PHP file_put_contents() to Write Data to Files
php Courses
php Courses
Nov 27, 2023 · Backend Development

Using PHP glob() Function for File and Directory Searching

This article explains the PHP glob() function, detailing its syntax, parameters, and multiple usage examples—including listing all files, filtering by extension, recursive file discovery, and directory-only searches—while providing complete code snippets for each scenario.

BackendPHPfile-handling
0 likes · 4 min read
Using PHP glob() Function for File and Directory Searching
php Courses
php Courses
Nov 10, 2023 · Backend Development

Using PHP file_get_contents() to Read Files and URLs

This article explains the PHP file_get_contents() function, its syntax, parameters, return values, and provides practical examples for reading local files and remote URLs, as well as further processing techniques such as content replacement and writing to new files.

Code Examplesfile-handlingfile_get_contents
0 likes · 6 min read
Using PHP file_get_contents() to Read Files and URLs
php Courses
php Courses
Oct 19, 2023 · Backend Development

PHP copy() Function: Syntax, Parameters, Return Value, Example, and Usage Tips

This article explains PHP's copy() function, detailing its syntax, parameters, return values, example usage, and important precautions for safely copying files on the server, including handling of existing destination files, limitations with directories, and cross‑filesystem considerations.

FilesystemPHPcopy
0 likes · 3 min read
PHP copy() Function: Syntax, Parameters, Return Value, Example, and Usage Tips
php Courses
php Courses
Oct 13, 2023 · Backend Development

Using PHP rewind() to Reset the File Pointer

This article explains the PHP rewind() function, detailing its syntax, parameters, and practical examples for repositioning the file pointer, resetting file state, and avoiding repeated file openings to improve efficiency in backend file handling.

PHPTutorialfile-handling
0 likes · 5 min read
Using PHP rewind() to Reset the File Pointer
php Courses
php Courses
Oct 12, 2023 · Backend Development

PHP ftell() Function: Syntax, Parameters, Usage, Example, and Return Value

The article explains the PHP ftell() function, detailing its syntax, required $handle parameter, how it returns the byte offset of the file pointer from the file start, includes a practical code example, and notes important usage considerations and return behavior.

PHPTutorialfile-handling
0 likes · 5 min read
PHP ftell() Function: Syntax, Parameters, Usage, Example, and Return Value
php Courses
php Courses
Oct 11, 2023 · Backend Development

PHP readfile() Function: Syntax, Parameters, Return Values, and Usage Examples

This article explains the PHP readfile() function, covering its syntax, parameter details, return values, and practical examples for sending files to the browser, storing them in variables, and using include_path searches, while noting memory considerations for large files.

PHPWeb Developmentfile-handling
0 likes · 4 min read
PHP readfile() Function: Syntax, Parameters, Return Values, and Usage Examples
php Courses
php Courses
Oct 11, 2023 · Backend Development

PHP file() Function: Syntax, Parameters, Return Value, and Usage Examples

This article explains PHP's file() function, detailing its syntax, parameters, return values, and provides multiple code examples for reading local and remote files, using flags and stream contexts, while noting memory considerations and alternative functions for large files.

Code ExampleFilePHP
0 likes · 5 min read
PHP file() Function: Syntax, Parameters, Return Value, and Usage Examples
php Courses
php Courses
Oct 8, 2023 · Backend Development

PHP fwrite() Function: Syntax, Parameters, Usage, and Examples

This article explains the PHP fwrite() function, covering its syntax, parameter details, return values, and practical usage examples such as opening files, writing data with optional length limits, checking success, and closing files, including notes on append mode.

Code ExamplePHPfile-handling
0 likes · 4 min read
PHP fwrite() Function: Syntax, Parameters, Usage, and Examples
php Courses
php Courses
Sep 29, 2023 · Backend Development

Using PHP's is_file() Function to Check Regular Files

The article explains PHP's is_file() function, its syntax, parameters, return values, provides code examples for checking regular files, outlines important usage considerations, and offers a complete example combined with file_exists() to safely determine file existence and type.

Filesystemfile-handlingis_file
0 likes · 5 min read
Using PHP's is_file() Function to Check Regular Files
php Courses
php Courses
Sep 26, 2023 · Backend Development

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

This article explains the PHP filectime() function, its syntax, how it returns a file's creation timestamp, how to format the timestamp with date(), includes practical code examples, and notes the difference from filemtime() and fileatime().

date functionfile timestampfile-handling
0 likes · 3 min read
Understanding PHP filectime() Function: Syntax, Usage, and Examples
Test Development Learning Exchange
Test Development Learning Exchange
Aug 20, 2023 · Fundamentals

Python Multimedia Service Modules: audioop, aifc, sunau, wave, chunk, colorsys, imghdr, sndhdr, ossaudiodev

This article introduces Python's multimedia service modules, explaining how to process raw audio data, read and write various audio file formats, detect image and sound file types, convert color systems, and access OSS‑compatible audio devices, all illustrated with practical code examples.

Multimediaaudiofile-handling
0 likes · 7 min read
Python Multimedia Service Modules: audioop, aifc, sunau, wave, chunk, colorsys, imghdr, sndhdr, ossaudiodev
php Courses
php Courses
Jul 14, 2023 · Backend Development

How to Save Remote Images Locally Using PHP

This tutorial explains how to install the CURL extension, retrieve a remote image with file_get_contents, create a local directory, generate a unique filename, and save the image using file_put_contents in PHP, providing a complete, step‑by‑step guide for developers.

Backend Developmentfile-handling
0 likes · 4 min read
How to Save Remote Images Locally Using PHP
php Courses
php Courses
Jul 18, 2022 · Frontend Development

Useful Front-End File Handling Utility Libraries

This article introduces several practical front-end file‑handling utility libraries, presents a diagram of six plugin categories, and provides a link to the original source where detailed descriptions and download links for each tool can be found.

JavaScriptUtility Librariesfile-handling
0 likes · 1 min read
Useful Front-End File Handling Utility Libraries
Laravel Tech Community
Laravel Tech Community
May 8, 2022 · Backend Development

Implementing ZIP Packaging and Large File Download in PHP

This article demonstrates how to use PHP's ZipArchive class to create ZIP packages, stream large files for download, and encapsulate these operations within a reusable class, providing complete code examples and detailed explanations for backend developers.

File DownloadZipArchivefile-handling
0 likes · 7 min read
Implementing ZIP Packaging and Large File Download in PHP
IT Services Circle
IT Services Circle
Apr 22, 2022 · Fundamentals

Introduction to Common Python File Handling Modules: os, shutil, and zipfile

This article introduces the commonly used Python file handling modules—os, shutil, and zipfile—explaining their key functions, demonstrating path operations, file copying, moving, and compression/decompression with practical code examples to help readers efficiently manage files and directories.

OS moduleTutorialfile-handling
0 likes · 4 min read
Introduction to Common Python File Handling Modules: os, shutil, and zipfile
Liangxu Linux
Liangxu Linux
Oct 26, 2021 · Fundamentals

5 Sneaky C Bugs Every Programmer Should Avoid

This article lists five common C programming mistakes—uninitialized variables, array out‑of‑bounds access, string overflow, double free, and invalid file pointers—explains why they occur, shows concrete code examples with typical output, and offers practical ways to prevent each bug.

C programmingInitializationMemory Management
0 likes · 13 min read
5 Sneaky C Bugs Every Programmer Should Avoid
Python Programming Learning Circle
Python Programming Learning Circle
Aug 31, 2021 · Backend Development

Python Web Crawler for Downloading Drama Links from cn163.net

This article describes how to build a Python web crawler that automatically generates numeric URLs, checks their validity, extracts download links for TV dramas from cn163.net, saves them to text files, and discusses practical challenges such as regex parsing, filename restrictions, and multithreading performance.

Pythoncrawlingfile-handling
0 likes · 7 min read
Python Web Crawler for Downloading Drama Links from cn163.net
Liangxu Linux
Liangxu Linux
Aug 15, 2021 · Fundamentals

Why Does Vim Stall on 10 GB Files? Inside Its IO and Save Mechanics

The article explores why Vim becomes painfully slow when opening or saving a 10 GB file, detailing the editor's process initialization, its memfile‑based virtual storage, the full‑file read performed by readfile, and the multi‑step write sequence triggered by the :w command.

file-handlingiosource code
0 likes · 17 min read
Why Does Vim Stall on 10 GB Files? Inside Its IO and Save Mechanics
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
Programmer DD
Programmer DD
Jul 13, 2021 · Fundamentals

Master Linux File Splitting and Merging with split and cat

This guide explains why large files often need to be split on Linux for network transfer, demonstrates how to use the split command with various options and examples, and shows how to recombine the pieces efficiently using the cat command.

CATLinuxcommand-line
0 likes · 7 min read
Master Linux File Splitting and Merging with split and cat
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)
Laravel Tech Community
Laravel Tech Community
Apr 20, 2021 · Backend Development

PHP zip_open() – Open a ZIP Archive File

The article explains PHP's zip_open() function, showing its syntax, describing how it opens a ZIP archive for reading, detailing the required filename parameter, and outlining the return values including a resource handle on success or an error code on failure.

PHPfile-handlingzip_open
0 likes · 1 min read
PHP zip_open() – Open a ZIP Archive File
php Courses
php Courses
Apr 19, 2021 · Backend Development

Reading Files in PHP: fread vs file_get_contents

This article explains how to read files in PHP using the two functions fread and file_get_contents, compares their syntax, parameters, return values, and shows practical code examples illustrating their differences and when to use each method.

BackendPHPfile-handling
0 likes · 3 min read
Reading Files in PHP: fread vs file_get_contents
Laravel Tech Community
Laravel Tech Community
Mar 26, 2021 · Backend Development

zip_close – Close a ZIP Archive File (PHP)

The zip_close function in PHP closes a ZIP archive opened by zip_open, takes the ZIP resource as its sole argument, returns no value, and is illustrated with a concise example showing opening, reading, and closing a ZIP file.

file-handling
0 likes · 1 min read
zip_close – Close a ZIP Archive File (PHP)
Laravel Tech Community
Laravel Tech Community
Mar 24, 2021 · Backend Development

How to Open and Read ZIP Archives in PHP with zip_open

This guide explains the PHP zip_open() function, detailing its purpose, required filename parameter, return values, and provides a clear code example showing how to open a ZIP file, read its entries, and close the archive safely.

BackendPHPfile-handling
0 likes · 1 min read
How to Open and Read ZIP Archives in PHP with zip_open
Python Programming Learning Circle
Python Programming Learning Circle
Mar 5, 2021 · Fundamentals

Python Built‑in Functions and Common Usage

This article introduces Python's built‑in functions, data types, numeric conversions, mathematical utilities, sequence and collection constructors, iteration tools, scope inspection, dynamic code execution, memory introspection, file handling, and module import techniques, providing concise code examples for each concept.

Code ExecutionData TypesPython
0 likes · 11 min read
Python Built‑in Functions and Common Usage
Laravel Tech Community
Laravel Tech Community
Jul 26, 2020 · Backend Development

Understanding PHP's feof() Function and Safe EOF Handling

This article explains PHP's feof() function, detailing its purpose, required handle parameter, return values, and provides two practical code examples—one demonstrating a safe EOF check with timeout and another showing how to handle missing files without entering infinite loops.

BackendError HandlingPHP
0 likes · 2 min read
Understanding PHP's feof() Function and Safe EOF Handling
Laravel Tech Community
Laravel Tech Community
Jul 22, 2020 · Backend Development

PHP file_get_contents Function: Description, Parameters, Return Value, and Usage Examples

This article explains the PHP file_get_contents function, detailing its purpose of reading an entire file into a string, describing each parameter and return value, and providing multiple practical code examples demonstrating basic usage, include path handling, partial reads, and custom stream contexts.

Backend DevelopmentPHPfile-handling
0 likes · 3 min read
PHP file_get_contents Function: Description, Parameters, Return Value, and Usage Examples
Laravel Tech Community
Laravel Tech Community
Jul 21, 2020 · Backend Development

PHP file_put_contents Function: Usage, Parameters, and Examples

This article explains PHP's file_put_contents function, detailing its purpose of writing strings, arrays, or streams to files, describing each parameter (filename, data, flags, context), return values, and providing two practical code examples demonstrating basic usage and appending with FILE_APPEND and LOCK_EX flags.

Backendfile-handlingfile_put_contents
0 likes · 3 min read
PHP file_put_contents Function: Usage, Parameters, and Examples
Laravel Tech Community
Laravel Tech Community
Jul 8, 2020 · Backend Development

PHP file() Function: Reading Files into an Array

The PHP file() function reads an entire file into an array, offering optional flags to control path lookup, line handling, and context usage, with examples showing how to display lines, concatenate content, and apply flag combinations for flexible file processing.

ArrayBackendPHP
0 likes · 3 min read
PHP file() Function: Reading Files into an Array
MaGe Linux Operations
MaGe Linux Operations
Feb 17, 2020 · Operations

How to Efficiently Split and Merge Large Log Files on Linux

When log files grow massive, traditional tools like vim, cat, grep, and awk become slow and memory‑hungry, but Linux’s split command lets you divide a huge file by line count or size, process the pieces individually, and later recombine them, dramatically improving analysis efficiency.

Big DataShell scriptingfile-handling
0 likes · 8 min read
How to Efficiently Split and Merge Large Log Files on Linux
MaGe Linux Operations
MaGe Linux Operations
Aug 10, 2018 · Fundamentals

Unlock Hidden Python Tricks: Variable Arguments, Glob, UUID, Serialization & More

This article introduces several often‑overlooked Python features—including functions that accept arbitrary arguments, file searching with glob, debugging with inspect, generating unique IDs via uuid, data serialization, string compression, and registering shutdown functions with atexit—providing concise examples and visual code snippets.

file-handlingfunctionsprogramming
0 likes · 5 min read
Unlock Hidden Python Tricks: Variable Arguments, Glob, UUID, Serialization & More
ITPUB
ITPUB
Aug 3, 2018 · Operations

How to Monitor Log Files in Real-Time with Python: 3 Simple Methods

When high service reliability demands immediate detection of slow requests, this guide shows three Python techniques—using tail via subprocess, file.tell/seek loops, and a generator with yield—to continuously watch log files and trigger alerts as soon as specified patterns appear.

Log MonitoringOperationsPython
0 likes · 4 min read
How to Monitor Log Files in Real-Time with Python: 3 Simple Methods
MaGe Linux Operations
MaGe Linux Operations
Apr 10, 2018 · Fundamentals

Master Shell Scripting: From Variables to Advanced Sed Editing

This comprehensive guide walks you through the essentials of Bash shell scripting, covering variable definitions, printing, arithmetic, control structures, loops, arrays, functions, file I/O, sed stream editing, modular scripts, and interactive menus, all illustrated with clear code examples.

BashLoopsShell scripting
0 likes · 24 min read
Master Shell Scripting: From Variables to Advanced Sed Editing
MaGe Linux Operations
MaGe Linux Operations
Jul 14, 2017 · Operations

Essential Python OS & File Operations for Automation

This guide presents a comprehensive collection of Python's os and shutil functions, file handling methods, and practical code examples to help operations engineers automate tasks, manage files and directories, and improve efficiency in modern IT environments.

AutomationOS moduleOperations
0 likes · 11 min read
Essential Python OS & File Operations for Automation