Tagged articles
6 articles
Page 1 of 1
php Courses
php Courses
Nov 13, 2025 · Backend Development

How to Use PHP’s stat() Function to Retrieve Detailed File Information

Learn how PHP’s stat() function returns a comprehensive associative array of file attributes—such as size, device ID, inode, permissions, timestamps, and block information—by explaining its syntax, parameters, returned keys, and providing practical code examples for extracting and displaying these details.

FilesystemPHPfile metadata
0 likes · 4 min read
How to Use PHP’s stat() Function to Retrieve Detailed File Information
php Courses
php Courses
Dec 6, 2024 · Backend Development

How to Retrieve a File’s Last Modification Time in PHP

This article explains how to retrieve a file’s last modification time in PHP using functions like filemtime(), stat(), and the DateTime class, and provides a practical example for detecting changes and notifying users.

Backenddatetimefilemtime
0 likes · 3 min read
How to Retrieve a File’s Last Modification Time in PHP
php Courses
php Courses
Oct 7, 2023 · Backend Development

PHP stat() Function: Retrieving Detailed File Information

The PHP stat() function returns an associative array containing detailed file metadata such as size, device ID, inode, permissions, timestamps and block information, and can be used by passing a filename to retrieve and display these attributes via array keys.

FilesystemPHPfile metadata
0 likes · 4 min read
PHP stat() Function: Retrieving Detailed File Information