Tagged articles
41 articles
Page 1 of 1
php Courses
php Courses
Aug 26, 2025 · Backend Development

Mastering PHP’s fseek(): Precise File Pointer Control

This article explains how PHP’s fseek() function moves the file pointer to any position, details its syntax and parameters, and provides a complete example demonstrating reading, writing, and seeking within a file for flexible file manipulation.

file-handlingfile-pointerfseek
0 likes · 4 min read
Mastering PHP’s fseek(): Precise File Pointer Control
Code Mala Tang
Code Mala Tang
Jun 4, 2025 · Fundamentals

10 Powerful CSV Module Tricks Every Python Developer Should Know

This guide reveals ten powerful and often overlooked techniques for Python’s built‑in csv module, covering automatic delimiter detection, header detection, custom dialects, DictWriter usage, selective column reading, generator‑based streaming, special‑character escaping, safe appending, CSV‑JSON conversion, and explicit Unicode handling to boost data‑processing efficiency.

CSVTipsdata-processing
0 likes · 8 min read
10 Powerful CSV Module Tricks Every Python Developer Should Know
php Courses
php Courses
Mar 19, 2025 · Backend Development

Reading Files into an Array with PHP's file() Function

This article explains how to use PHP's file() function to read a file's contents into an array, covering its syntax, parameters, optional flags such as FILE_IGNORE_NEW_LINES, and provides clear code examples for practical use.

ArrayFile Readfile-handling
0 likes · 4 min read
Reading Files into an Array with PHP's file() Function
php Courses
php Courses
Mar 5, 2025 · Backend Development

Using PHP ftell() to Retrieve the Current File Pointer Position

This article explains PHP's ftell() function, detailing its signature, parameters, return values, and providing a complete example that reads the first ten bytes of a file, displays the content and the current file pointer position, while noting byte‑offset considerations for multibyte characters.

Tutorialfile-handlingfile-pointer
0 likes · 4 min read
Using PHP ftell() to Retrieve the Current File Pointer Position
php Courses
php Courses
Feb 19, 2025 · Backend Development

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

This tutorial explains how PHP's file() function reads a text file into an array, demonstrates the default behavior of preserving line breaks, and shows how to use flags such as FILE_IGNORE_NEW_LINES and FILE_SKIP_EMPTY_LINES to control newline retention and skip empty lines.

BackendTutorialfile-function
0 likes · 4 min read
Using PHP's file() Function to Read Files into an Array
php Courses
php Courses
Jan 27, 2025 · Backend Development

Using PHP ftell() to Retrieve the Current File Pointer Position

This article explains the PHP ftell() function, its parameters and return values, and provides a complete example that reads the first ten bytes of a file, displays the content, obtains the file pointer offset, and highlights important considerations when working with byte‑based positions.

Backendfile-handlingfile-pointer
0 likes · 4 min read
Using PHP ftell() to Retrieve the Current File Pointer Position
php Courses
php Courses
Jan 14, 2025 · Backend Development

Reading Large Files in PHP Using fread: Line‑by‑Line Processing

This article explains how to efficiently read large files in PHP line by line with the fread function, provides a complete code example, and discusses additional techniques such as buffering, fseek positioning, and adjusting memory limits to avoid memory overflow.

BackendMemory Managementfile-handling
0 likes · 4 min read
Reading Large Files in PHP Using fread: Line‑by‑Line Processing
php Courses
php Courses
Aug 9, 2024 · Backend Development

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

This article explains how the PHP file() function reads a file's contents into an array, details its syntax and parameters, demonstrates basic and flag‑based usage with code examples, and highlights important behavior such as line handling and newline removal.

ArrayBackendPHP
0 likes · 4 min read
Using PHP file() Function to Read Files into an Array
php Courses
php Courses
Jul 17, 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 user input, demonstrates opening files with fopen(), shows loop-based character reading, and provides complete code examples for both file and interactive input scenarios.

BackendPHPfgetc
0 likes · 4 min read
Using PHP fgetc() to Read Characters from Files and User Input
php Courses
php Courses
Jul 2, 2024 · Backend Development

Reading Large Files in PHP Using fread Line by Line

This article explains how to efficiently read large files in PHP by using the fread function to process the file line by line, includes code examples, and discusses additional techniques such as buffering, fseek positioning, and increasing memory limits to avoid memory overflow.

Backendfile-handlingfread
0 likes · 4 min read
Reading Large Files in PHP Using fread Line by Line
php Courses
php Courses
Jun 25, 2024 · Backend Development

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

This tutorial explains how PHP's file() function reads a text file, returns each line as an array element, and how optional flags like FILE_IGNORE_NEW_LINES and FILE_SKIP_EMPTY_LINES can control newline retention and empty‑line handling.

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

Using PHP fgetc() to Read Characters from Files and Standard 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 for looping through file contents, and provides a user input example with a switch statement, helping readers master character-level file operations.

Tutorialfgetcfile-handling
0 likes · 4 min read
Using PHP fgetc() to Read Characters from Files and Standard Input
php Courses
php Courses
Apr 25, 2024 · Backend Development

Using fopen() in PHP: Syntax, Parameters, and Practical Examples

This article explains PHP's fopen() function, detailing its syntax, parameters, and providing four practical examples for reading, writing, appending to files, and opening URLs, while emphasizing proper mode selection and resource cleanup.

BackendTutorialfile-handling
0 likes · 3 min read
Using fopen() in PHP: Syntax, Parameters, and Practical Examples
php Courses
php Courses
Mar 6, 2024 · Backend Development

Reading Large Files in PHP Line by Line with fread

This article explains how to efficiently read large files in PHP using the fread function line by line, providing code examples, buffering tips, fseek usage, and memory‑limit adjustments to avoid memory overflow while processing massive data streams.

file-handlingfreadlarge files
0 likes · 4 min read
Reading Large Files in PHP Line by Line with fread
php Courses
php Courses
Mar 4, 2024 · Backend Development

Using PHP fseek() to Position File Pointers

This article explains PHP's fseek() function, detailing its syntax, parameters such as offset and whence, and demonstrates practical usage with example code to move file pointers, read, write, and manage file contents efficiently.

file-handlingfile-pointerfseek
0 likes · 4 min read
Using PHP fseek() to Position File Pointers
php Courses
php Courses
Jan 10, 2024 · Backend Development

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

This article explains PHP's fgetc() function for reading a single character from an opened file or standard input, demonstrates how to open files with fopen(), shows example code for character-by-character reading using a while loop, and provides a user input handling example with a switch statement.

Backendfgetcfile-handling
0 likes · 4 min read
Using PHP fgetc() to Read Characters from Files and Standard Input
php Courses
php Courses
Dec 23, 2023 · Backend Development

How to Use PHP zip_read() to Read ZIP File Entries

The article explains PHP's zip_read() function, its syntax, how to open a ZIP file, iterate through entries, retrieve entry names and sizes, and notes its limitations, providing a complete code example for reading ZIP file entries.

Backendfile-handlingzip
0 likes · 3 min read
How to Use PHP zip_read() to Read ZIP File Entries
php Courses
php Courses
Dec 18, 2023 · Backend Development

Using PHP's fwrite() Function to Write Data to Files

This article explains PHP's fwrite() function, its syntax and parameters, and provides clear code examples for writing strings and serialized arrays to files, while highlighting important considerations such as file opening modes and data types.

Backendfile-handlingfwrite
0 likes · 4 min read
Using PHP's fwrite() Function to Write Data to Files
php Courses
php Courses
Oct 13, 2023 · Backend Development

Using PHP flock() for File Locking: Concepts, Modes, and Example Code

This article explains PHP's flock() function for file locking, covering the purpose of file locks, basic usage syntax, lock modes (shared, exclusive, unlock), a complete example script, and important considerations to safely handle concurrent file access in backend applications.

file lockingfile-handlingflock
0 likes · 4 min read
Using PHP flock() for File Locking: Concepts, Modes, and Example Code
php Courses
php Courses
Oct 10, 2023 · Backend Development

Using PHP fgetc() to Read Characters from a File

This article explains the PHP fgetc() function, its syntax, parameters, return values, important usage notes, and provides a complete code example demonstrating how to open a file, read characters one by one, and properly close the file, along with alternatives for reading larger data.

fgetcfile-handlingphp-functions
0 likes · 4 min read
Using PHP fgetc() to Read Characters from a File
php Courses
php Courses
Oct 9, 2023 · Backend Development

Using PHP feof() Function to Detect End-of-File

This article explains the PHP feof() function, its syntax, parameters, typical usage flow, provides a complete code example for reading a file line‑by‑line until EOF, and discusses important considerations and alternative methods for end‑of‑file detection.

end-of-filefeoffile-handling
0 likes · 4 min read
Using PHP feof() Function to Detect End-of-File
php Courses
php Courses
Sep 23, 2023 · Backend Development

How to Properly Use PHP fclose() to Close Files

This article explains the PHP fclose() function, demonstrates how to close a single file, handle errors, close multiple files in a loop, and provides important usage notes with clear code examples for reliable file management.

Tutorialerror-handlingfclose
0 likes · 4 min read
How to Properly Use PHP fclose() to Close Files
Python Crawling & Data Mining
Python Crawling & Data Mining
Nov 29, 2022 · Fundamentals

How to Simplify Image Filename Deduplication in Python

This article walks through a practical Python example for deduplicating image file names, compares an initial verbose implementation with a more concise solution, and demonstrates how to reduce redundant conditional checks for cleaner, more readable code.

Code OptimizationPythondeduplication
0 likes · 4 min read
How to Simplify Image Filename Deduplication in Python
Laravel Tech Community
Laravel Tech Community
Apr 24, 2021 · Backend Development

zip_entry_read() – Read an Opened Zip Archive Entry

The PHP function zip_entry_read() reads data from an opened zip archive entry, accepting a zip entry resource and an optional length parameter, and returns the retrieved string, an empty string at EOF, or FALSE on error.

file-handlingphp-functions
0 likes · 1 min read
zip_entry_read() – Read an Opened Zip Archive Entry
Laravel Tech Community
Laravel Tech Community
Apr 21, 2021 · Backend Development

zip_read() – Read the Next Entry in a ZIP Archive

The article explains PHP’s zip_read() function, detailing its purpose of reading the next entry in an opened ZIP archive, describing the required $zip resource parameter, and outlining the possible return values including the entry resource, FALSE when no more entries exist, or error codes.

archivefile-handlingphp-functions
0 likes · 2 min read
zip_read() – Read the Next Entry in a ZIP Archive
Laravel Tech Community
Laravel Tech Community
Apr 1, 2021 · Backend Development

zip_entry_compressedsize() – Retrieve the Compressed Size of a Zip Archive Entry (PHP)

The article explains the PHP function zip_entry_compressedsize(), which returns the compressed size of a specific entry in a ZIP archive, describes its parameter, return value, and provides a complete example demonstrating how to open a ZIP file, iterate over entries, and display each entry’s name and compressed size.

file-handlingzip_entry_compressedsize
0 likes · 1 min read
zip_entry_compressedsize() – Retrieve the Compressed Size of a Zip Archive Entry (PHP)
Laravel Tech Community
Laravel Tech Community
Mar 31, 2021 · Backend Development

zip_entry_close() – Close a ZIP Archive Entry in PHP

The article explains the PHP function zip_entry_close(), which closes a directory entry obtained from a ZIP archive, details its syntax, parameters, return values, and provides a complete example demonstrating its usage within a typical zip handling workflow.

archivefile-handlingzip_entry_close
0 likes · 2 min read
zip_entry_close() – Close a ZIP Archive Entry in PHP
Laravel Tech Community
Laravel Tech Community
Mar 28, 2021 · Backend Development

PHP zip_entry_read – Read an Opened Zip Archive Entry

The article explains PHP’s zip_entry_read function, detailing its purpose, parameters, return values, and provides a complete example demonstrating how to open a zip archive, iterate through entries, read their contents, and close resources.

archivefile-handlingzip_entry_read
0 likes · 2 min read
PHP zip_entry_read – Read an Opened Zip Archive Entry
Laravel Tech Community
Laravel Tech Community
Mar 25, 2021 · Backend Development

zip_read() – Read the Next Entry in a ZIP Archive (PHP)

The article explains PHP’s zip_read() function, detailing its purpose, required zip resource parameter, return values (including FALSE when no more entries), and provides a concise example showing how to open a ZIP file, read an entry, and close the archive.

archivefile-handling
0 likes · 2 min read
zip_read() – Read the Next Entry in a ZIP Archive (PHP)
Python Programming Learning Circle
Python Programming Learning Circle
Dec 10, 2020 · Fundamentals

Using Python's with Statement for File Handling and Understanding Shell and split() Method

This article explains how to use Python's with statement to read files into a list for access outside the block, demonstrates printing file lines and extracting shells, describes the purpose of rstrip(), outlines interactive versus non‑interactive shells, and introduces Python's split() method for string slicing.

file-handlingfundamentalssplit
0 likes · 4 min read
Using Python's with Statement for File Handling and Understanding Shell and split() Method
Laravel Tech Community
Laravel Tech Community
Aug 31, 2020 · Backend Development

Using PHP fgetcsv() to Read and Parse CSV Files

This article explains the PHP fgetcsv() function, its parameters, return values, and provides a complete example showing how to open a CSV file, read each line as an array of fields, and process the data in a backend script.

BackendTutorialfgetcsv
0 likes · 3 min read
Using PHP fgetcsv() to Read and Parse CSV Files
Laravel Tech Community
Laravel Tech Community
Jul 11, 2020 · Backend Development

Using PHP fwrite() to Write Data to Files

This article explains how the PHP fwrite() function writes strings to an open file handle, describes its parameters and return values, and provides a complete example demonstrating file existence checks, opening in append mode, writing content, handling errors, and closing the file.

BackendTutorialfile write
0 likes · 2 min read
Using PHP fwrite() to Write Data to Files