
May 27th, 2008, 01:00 AM
|
|
Developer Shed
|
|
Join Date: Jun 2007
Posts: 12,344
Time spent in forums: < 1 sec
Reputation Power: 14
|
|
|
Directory Listings, list files and subfolder using php
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.
Read the full article here: Directory Listings, list files and subfolder using php
|