Tagged articles
directory
27 articles · Page 1 of 1
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

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.
BackendPHPdirectory
0 likes · 4 min read

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

This tutorial explains how to use PHP's LDAP functions to connect to an LDAP server, bind a user, and authenticate credentials, providing complete example code for each step to enable secure authentication in web applications.
AuthenticationLDAPTutorial
0 likes · 4 min read

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.
BitmapExt2Inode
0 likes · 10 min read

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

This guide explains Linux's unified file concept, the hierarchical directory layout, the role of inodes in mapping logical to physical storage, and the differences between hard and soft links, providing clear examples and visual diagrams for each topic.
FilesystemHard LinkInode
0 likes · 6 min read

This tutorial explains how to use PHP's LDAP functions to connect to an LDAP server, bind with credentials, and authenticate users by searching the directory and verifying passwords, providing complete code examples for each step.
AuthenticationBackendLDAP
0 likes · 4 min read

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

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

This article explains the PHP closedir() function, covering its purpose, basic usage with code examples, common pitfalls, and practical scenarios to help developers efficiently manage directory handles and avoid resource leaks in PHP scripts.
closedirdirectoryfile handling
0 likes · 3 min read

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

This article explains how to work with absolute and relative file paths in PHP, demonstrates extracting path components with pathinfo(), and provides practical examples of directory and file manipulation functions such as opendir, readdir, scandir, fopen, fread, fwrite, unlink, copy, and rename.
BackendPATHdirectory
0 likes · 9 min read

This article explains the Linux Filesystem Hierarchy Standard (FHS), describes the purpose and typical contents of each top‑level directory such as /home, /boot, /etc, /usr, and /var, and demonstrates essential shell commands for navigating and managing these directories, including absolute and relative paths.
FilesystemLinuxPATH
0 likes · 16 min read

The PHP scandir function returns an array of filenames and sub‑directories from a given directory, optionally sorted in ascending or descending order, and can accept a stream context, providing FALSE on failure and generating a warning if the path is not a directory.
BackendFilesystemPHP
0 likes · 2 min read

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

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

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

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

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

This guide demonstrates multiple Python techniques for automatically retrieving the current directory, its parent, and grand‑parent paths using the os module, helping developers avoid manual path changes when working across multiple projects.
PATHdirectoryfile handling
0 likes · 3 min read

The PHP rewinddir() function resets a directory handle opened by opendir() back to the start of the directory stream, returning the handle on success or FALSE on failure, and is illustrated with a complete example that reads, rewinds, and reads the directory contents again.
Filesystemdirectoryrewinddir
0 likes · 2 min read

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

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

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

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

This article explains the PHP mkdir() function, detailing its signature, parameter meanings, default mode, recursive option, return values, and provides two practical code examples demonstrating simple directory creation and nested directory creation with error handling.
BackendFilesystemdirectory
0 likes · 2 min read
