Tag

directory

0 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
Apr 17, 2025 · Backend Development

Using PHP LDAP Functions for Connecting, Binding, and User Authentication

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.

AuthenticationBackendLDAP
0 likes · 4 min read
Using PHP LDAP Functions for Connecting, Binding, and User Authentication
php中文网 Courses
php中文网 Courses
Mar 4, 2025 · Backend Development

Advanced PHP File and Directory Operations

This article provides a comprehensive guide to advanced PHP file and directory handling, covering reading and writing files, retrieving file metadata, manipulating file pointers, traversing and managing directories, handling uploads, error handling, and best practices with clear code examples.

BackendFile I/OPHP
0 likes · 6 min read
Advanced PHP File and Directory Operations
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.

BitMapFile SystemInode
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
Jun 7, 2024 · Backend Development

Using PHP to Connect to an LDAP Server and Perform User Authentication

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
Using PHP to Connect to an LDAP Server and Perform User Authentication
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.

BackendPHPdirectory
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.

BackendFile Systemdirectory
0 likes · 4 min read
Using PHP mkdir() to Create Directories Dynamically
php中文网 Courses
php中文网 Courses
Oct 21, 2023 · Backend Development

Understanding and Using the PHP closedir() Function for Directory Handling

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.

BackendPHPclosedir
0 likes · 3 min read
Understanding and Using the PHP closedir() Function for Directory Handling
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.

BackendFilesystemdirectory
0 likes · 5 min read
Using PHP mkdir() to Create Directories: Syntax, Parameters, and Practical Examples
php中文网 Courses
php中文网 Courses
Dec 26, 2022 · Backend Development

PHP Path and File Operations: Absolute/Relative Paths, Pathinfo, and Directory Functions

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.

BackendFile SystemPHP
0 likes · 9 min read
PHP Path and File Operations: Absolute/Relative Paths, Pathinfo, and Directory Functions
IT Services Circle
IT Services Circle
Feb 10, 2022 · Fundamentals

Understanding the Linux Filesystem Hierarchy Standard (FHS) and Common Directory Commands

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.

FHSFilesystemLinux
0 likes · 16 min read
Understanding the Linux Filesystem Hierarchy Standard (FHS) and Common Directory Commands
Laravel Tech Community
Laravel Tech Community
Jul 17, 2021 · Backend Development

PHP scandir Function: List Files and Directories in a Specified Path

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
PHP scandir Function: List Files and Directories in a Specified Path
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.

Backenddirectoryopendir
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.

BackendFilesystemPHP
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.

BackendExampledir
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.

BackendFilesystemPHP
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.

BackendFilesystemchdir
0 likes · 1 min read
PHP chdir Function: Changing the Working Directory
Laravel Tech Community
Laravel Tech Community
Mar 11, 2021 · Backend Development

PHP rewinddir() Function – Reset Directory Handle to the Beginning

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.

BackendFilesystemPHP
0 likes · 2 min read
PHP rewinddir() Function – Reset Directory Handle to the Beginning
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.

BackendFilesystemdirectory
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.

BackendFilesystemPHP
0 likes · 2 min read
PHP opendir() Function – Opening a Directory Handle