Directory Listings, list files and subfolder using php

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.

 
Visit Site:
Directory Listings, list files and subfolder using php
Version:
1.0.0 
Filed in:
PHP / Tutorials & Tips / File Manipulation
Platforms:
LinuxMicrosoft WindowsUnixApple Mac OS X 
Databases:
No Database 
Date Added:
May 15, 2008 
Last Updated:
May 15, 2008 

License and Pricing Information

Freeware

Price: $0.00 USD

Publisher site visits: 1,937
Average rating: 4.33
Total ratings: 3

Be the first to review this listing!

Publisher Info

Author:
Chetankumar Akarte 
Other listings by this publisher

Share this Listing