Tagged articles
27 articles
Page 1 of 1
php Courses
php Courses
Jan 21, 2026 · Backend Development

How to Rename Files and Directories in PHP Using rename()

This guide explains the PHP rename() function, covering its syntax, required parameters, return values, practical code examples for renaming both files and directories, and important permission considerations to ensure successful renaming operations.

directoryfile-handlingrename
0 likes · 3 min read
How to Rename Files and Directories in PHP Using rename()
php Courses
php Courses
Oct 23, 2025 · Backend Development

Master PHP’s glob() Function: Find Files & Directories Efficiently

Learn how to use PHP’s powerful glob() function to locate files and directories with pattern matching, explore its syntax, optional flags, and practical examples ranging from simple file listings to recursive directory searches and directory-only queries.

BackendFile SearchPHP
0 likes · 4 min read
Master PHP’s glob() Function: Find Files & Directories Efficiently
php Courses
php Courses
Aug 25, 2025 · Backend Development

Mastering PHP’s closedir(): Properly Close Directory Handles

This article explains the PHP closedir() function, covering its basic concept, correct usage, common pitfalls, and practical scenarios to help developers efficiently manage directory handles and avoid errors in file operations.

PHPclosedirdirectory
0 likes · 3 min read
Mastering PHP’s closedir(): Properly Close Directory Handles
IT Services Circle
IT Services Circle
Oct 15, 2024 · Fundamentals

Designing a Simple File System with Blocks, Bitmaps, Inodes, and Directories

This article walks through the step‑by‑step design of a simple file system on a 1 TB disk, introducing logical blocks, block bitmaps, inode structures, directory handling, indirect indexing, superblocks, and hierarchical file organization, while comparing the design to the classic ext2 filesystem.

BitmapExt2block allocation
0 likes · 10 min read
Designing a Simple File System with Blocks, Bitmaps, Inodes, and Directories
php Courses
php Courses
Sep 6, 2024 · Backend Development

Using PHP file_exists() to Check Files and Directories

This article explains the PHP file_exists() function, its syntax, parameters, return values, provides example code for checking both files and directories, and lists important usage notes and best practices for reliable filesystem operations.

BackendFilesystemPHP
0 likes · 4 min read
Using PHP file_exists() to Check Files and Directories
php Courses
php Courses
Mar 29, 2024 · Backend Development

Using PHP rename() Function to Rename Files and Directories

This article explains PHP's rename() function, detailing its syntax, parameters, return values, and usage examples for renaming both files and directories, while also highlighting important considerations such as permission constraints and error handling.

PHPdirectoryrename
0 likes · 3 min read
Using PHP rename() Function to Rename Files and Directories
php Courses
php Courses
Jan 4, 2024 · Backend Development

Using PHP mkdir() to Create Directories Dynamically

This tutorial explains PHP's mkdir() function, detailing its parameters and demonstrating simple, permission-setting, recursive, and dynamic directory creation through clear code examples, enabling developers to efficiently manage server-side folders in web applications.

Backenddirectoryfile-system
0 likes · 4 min read
Using PHP mkdir() to Create Directories Dynamically
php Courses
php Courses
Oct 17, 2023 · Backend Development

Using PHP mkdir() to Create Directories: Syntax, Parameters, and Practical Examples

This article explains PHP's mkdir() function, detailing its syntax, parameters, return values, and providing practical examples for creating single directories, recursive directories, setting permissions, and using optional stream contexts, along with code snippets and explanations of each argument's effect.

Filesystemdirectorymkdir
0 likes · 5 min read
Using PHP mkdir() to Create Directories: Syntax, Parameters, and Practical Examples
Laravel Tech Community
Laravel Tech Community
Jul 14, 2021 · Backend Development

PHP opendir Function: Opening Directory Handles

This article explains PHP's opendir function, which opens a directory handle for subsequent closedir, readdir, and rewinddir operations, details its parameters and return values, and provides a complete example script demonstrating how to read directory contents and output file names with their types.

BackendFilesystemdirectory
0 likes · 2 min read
PHP opendir Function: Opening Directory Handles
Laravel Tech Community
Laravel Tech Community
Jul 13, 2021 · Backend Development

PHP getcwd – Retrieve Current Working Directory

The article explains the PHP getcwd() function, its return values, permission considerations on Unix variants, and provides a clear code example demonstrating how to obtain and change the current working directory using echo and chdir.

BackendFilesystemdirectory
0 likes · 2 min read
PHP getcwd – Retrieve Current Working Directory
Laravel Tech Community
Laravel Tech Community
Jul 13, 2021 · Backend Development

PHP dir() Function – Returns a Directory Instance

The article explains PHP's dir() function, detailing its parameters, return values, and providing a complete example that demonstrates opening a directory, retrieving its handle and path, iterating over entries, and closing the directory resource.

BackendFilesystemdir
0 likes · 2 min read
PHP dir() Function – Returns a Directory Instance
Laravel Tech Community
Laravel Tech Community
Jul 11, 2021 · Backend Development

PHP closedir Function – Closing Directory Handles

The PHP closedir function closes a directory handle opened by opendir, accepting a resource parameter and returning TRUE on success or FALSE on failure, with usage examples and parameter details for backend filesystem operations.

BackendFilesystemclosedir
0 likes · 2 min read
PHP closedir Function – Closing Directory Handles
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
Laravel Tech Community
Laravel Tech Community
Mar 10, 2021 · Backend Development

PHP readdir() Function: Reading Directory Entries

The PHP readdir() function reads the next entry from an opened directory handle, returning the filename in filesystem order, with details on its parameters, return values, and example code demonstrating correct and incorrect directory traversal techniques.

FilesystemPHPdirectory
0 likes · 2 min read
PHP readdir() Function: Reading Directory Entries
Laravel Tech Community
Laravel Tech Community
Mar 9, 2021 · Backend Development

PHP opendir() Function – Opening a Directory Handle

This article explains PHP's opendir() function, detailing its purpose of opening a directory handle, the required path and optional context parameters, the return values, and provides a complete code example that reads and displays filenames and their types within a specified directory.

FilesystemPHPdirectory
0 likes · 2 min read
PHP opendir() Function – Opening a Directory Handle
Laravel Tech Community
Laravel Tech Community
Mar 8, 2021 · Backend Development

PHP getcwd() – Retrieve Current Working Directory

This article explains the PHP getcwd() function, which retrieves the current working directory, details its return values, provides a sample script demonstrating its usage with chdir(), and shows the expected output paths.

FilesystemPHPdirectory
0 likes · 1 min read
PHP getcwd() – Retrieve Current Working Directory
Laravel Tech Community
Laravel Tech Community
Sep 17, 2020 · Backend Development

PHP chdir() Function: Change Working Directory

This article explains the PHP chdir() function, its syntax, parameters, return values, and provides a practical example showing how to change the current working directory and verify the change using getcwd().

BackendFilesystemPHP
0 likes · 1 min read
PHP chdir() Function: Change Working Directory