The net's largest PHP, CGI, Perl, JavaScript and ASP script collection and resource web portal
  New Listings
New Listings
Most Popular
Most Popular
Top Rated
Top Rated
Discussion
Discussion
Link to Us!
Link To Us
Search For:         
   
 
Categories

Ajax
ASP
ASP.NET
C and C++
CFML
CGI and Perl
Flash
Java
JavaScript
PHP
Python
Remotely Hosted
Ruby on Rails
Tools and Utilities
Web Hosting
XML

Sponsor Links



Home :: PHP :: Tips and Tutorials :: File Manipulation Notes 

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


 Share


 License Information
License # 1:
  License Type: Freeware Price: Free


Average Visitor Rating:     0.00 (out of 5)
Number of Ratings: Votes


  Visitor Voting Booth

Average Member Rating: Not yet reviewed by any member....

You can be the FIRST one to write a review for Directory Listings, list files and subfolder using php.

 Other Links by This Member






 

Register | FAQ/Support | Contact Us | About Us | Getting Rated | Link to Us | Bookmark Us | Advertising Info | Terms of Use | Privacy Policy
Copyright © 2008 iNET Interactive. All rights reserved.
Other iNET Interactive Sites:
Web Hosting Talk | dBForums | Mac Forums | Hosting Catalog