Tag

file()

0 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
Jun 13, 2025 · Backend Development

Master PHP’s file() Function: Read Files into Arrays with Flags

Learn how to use PHP’s built‑in file() function to read a text file into an array, control newline handling with FILE_IGNORE_NEW_LINES, skip empty lines with FILE_SKIP_EMPTY_LINES, and see practical code examples illustrating each option.

PHParraybackend
0 likes · 4 min read
Master PHP’s file() Function: Read Files into Arrays with Flags
php中文网 Courses
php中文网 Courses
Apr 9, 2025 · Backend Development

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

This article explains how to use PHP's file() function to read a file's contents into an array, describes its syntax and parameters, demonstrates basic and flag‑enhanced usage with code examples, and highlights important behaviors such as automatic newline removal.

PHParraybackend development
0 likes · 4 min read
Using PHP file() Function to Read Files into an Array
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 5, 2024 · Frontend Development

Understanding Blob, File, Base64, URL.createObjectURL, ArrayBuffer, TypedArray, and DataView in Frontend Development

This article provides a comprehensive guide to the Blob and File objects, their methods such as slice, text, arrayBuffer, and stream, explains Base64 encoding, demonstrates how to use URL.createObjectURL for previews, and introduces ArrayBuffer, TypedArray, and DataView for low‑level binary data handling in web development.

ArrayBufferBase64DataView
0 likes · 23 min read
Understanding Blob, File, Base64, URL.createObjectURL, ArrayBuffer, TypedArray, and DataView in Frontend Development
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 26, 2024 · Frontend Development

Understanding JavaScript Blob and File Objects: APIs, Methods, and Practical Use Cases

This article explains JavaScript's Blob and File objects, their creation syntax, properties, methods such as slice, text, arrayBuffer, and stream, and demonstrates common scenarios like file download, upload, image reading, and Base64 conversion with clear code examples.

JavaScriptWeb APIblob
0 likes · 10 min read
Understanding JavaScript Blob and File Objects: APIs, Methods, and Practical Use Cases
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 ExamplePHPbackend development
0 likes · 5 min read
PHP file() Function: Syntax, Parameters, Return Value, and Usage Examples
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 9, 2023 · Frontend Development

Understanding Files, Blobs, ArrayBuffer, TypedArray, and DataView in JavaScript

This article explains the concepts of File, Blob, ArrayBuffer, TypedArray, and DataView in JavaScript, covering their definitions, main usages, how to obtain files, common file operations such as slicing and previewing, and practical scenarios like large‑file uploads and video frame extraction.

ArrayBufferDataViewJavaScript
0 likes · 9 min read
Understanding Files, Blobs, ArrayBuffer, TypedArray, and DataView in JavaScript
php中文网 Courses
php中文网 Courses
Mar 16, 2023 · Frontend Development

Identifying and Converting Between Base64, Blob, and File in JavaScript

This guide explains the characteristics of Base64 strings, Blob objects, and File objects in web development, shows how to detect each type in JavaScript, and provides conversion functions to transform between Base64, Blob, and File formats.

Base64JavaScriptblob
0 likes · 5 min read
Identifying and Converting Between Base64, Blob, and File in JavaScript
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 18, 2022 · Fundamentals

Understanding Java IO Streams: BIO, Byte and Character Streams, and Practical Read/Write Examples

This article introduces Java's three generations of IO frameworks, explains the differences between blocking BIO, NIO, and NIO2, details byte and character streams, and provides complete example programs for writing to and reading from text files using try‑with‑resources and stream conversions.

BIOIOJava
0 likes · 14 min read
Understanding Java IO Streams: BIO, Byte and Character Streams, and Practical Read/Write Examples
Laravel Tech Community
Laravel Tech Community
May 18, 2021 · Backend Development

hash_update_file() – Fill Data from a File into an Active Hash Context

The hash_update_file() function reads a file and feeds its contents into an existing hash context, optionally using a stream context, returning true on success or false on failure, and is useful for generating file hashes in PHP applications.

PHPSecuritybackend
0 likes · 1 min read
hash_update_file() – Fill Data from a File into an Active Hash Context
php中文网 Courses
php中文网 Courses
Nov 4, 2020 · Backend Development

Common PHP Functions and Code Snippets

This article presents a curated collection of useful PHP functions covering string generation, email encoding, validation, file handling, JSON/XML parsing, slug creation, IP detection, forced downloads, tag clouds, similarity checks, Gravatar integration, text truncation, ZIP compression, URL handling, clickable link conversion, image resizing, and AJAX request detection, each accompanied by ready‑to‑use code examples.

NetworkPHPbackend
0 likes · 14 min read
Common PHP Functions and Code Snippets
Sohu Tech Products
Sohu Tech Products
Jul 15, 2020 · Frontend Development

Understanding and Using the Blob Web API in JavaScript

This article explains what a Blob is, introduces the Blob Web API with its constructor, properties, and methods, and demonstrates practical scenarios such as chunked uploads, downloading data, creating Blob URLs, converting to Base64, image compression, PDF generation, and compares Blob with ArrayBuffer, providing complete code examples for each use case.

Base64JavaScriptPDF
0 likes · 20 min read
Understanding and Using the Blob Web API in JavaScript
Java Captain
Java Captain
Feb 9, 2018 · Fundamentals

Introduction to Java I/O and the File Class with Practical Example

This article introduces Java I/O fundamentals, explains the four I/O interface groups, details the File class methods, provides a complete code demo with execution results, and highlights important points such as mkdirs behavior and cross‑platform path separators.

I/OJavaNIO
0 likes · 6 min read
Introduction to Java I/O and the File Class with Practical Example