 |
Categories |
|
 |
 |
| Directory Listings, list files and subfolder using php
|
Hits: 430
|
|
Description: This is the simple example to list contents of any Directory. To do this we are going to define function DirDisply( ) which will read the current directory contents and display it as a list.
We first open current directory by $TrackDir=opendir(".");
The opendir function returns a directory handle resource on success, or FALSE on failure.
Syntax is:
opendir ( string path [, resource context] )
Where:
Path - The directory path that is to be opened Context - For a description of the context parameter, refer to the streams section of the php manual.
|
| Resource Specification |
| Platform(s): |
linux, windows, freebsd, osx |
| Date Added: |
May 15, 2008 |
| Last Updated: |
May 15, 2008 |
| Author: |
Chetankumar Akarte |
| License Information |
|
License # 1: |
| |
License Type: |
Freeware
|
Price:
| Free |
Average Visitor Rating:
0.00 (out of 5)
Number of Ratings: Votes |
| Other Links by This Member |
|
|
|
|