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:
-



- Databases:
-
- 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 |
Publisher Info
- Author:
- Chetankumar Akarte
Other listings by this publisher
- PHP Database Integration With MySQL
- Printable Document Generation with PHP
- JavaScript Status clock - Basic
- JavaScript Status Text Clock
- JavaScript Status clock - Advance
- How to Close Browser Window
- What is Object Serialization
- What is Polymorphism
- Difference between HashMap and HashTable
- What is the difference between JDK and JRE
- Explain garbage collection
- What do you understand by Synchronization
- What is Common Language Runtime(CLR)
- What is .NET Framework
- Which are the main components of the .NET platform
- What is .NET Platform
- How many types of the JIT (just-in-time) compiler?
- What is JIT
- Which Languages supported by .NET Framework?
- What is the Microsoft .NET Framework 3.0?
- What is Windows Presentation Foundation (WPF)
- What is Windows Communication Foundation (WCF)?
- What is Windows Workflow Foundation (WF)?
- Explain Microsoft intermediate language (MSIL) Assembler?
- What is Microsoft intermediate language (MSIL)?
- What functions an assembly performs?
- What is .NET assembly?
- What are the Benefits of Metadata?
- What the Metadata stores?
- How metadata is stored?
- What is .NET metadata?
- What are CLS features?
- What is the Common Language Specification (CLS)?
- ASP Error - The HTTP Headers are already written
- What is PHP Sessions?
- JavaScript Digital clock
- Status Bar Left to Right TextScroll
- Building Feedback Form with php
- Add a blinking flash message at the status bar of Web browser(IE)
- Image based hit counter in PHP to keep track of visitor.
- JavaScript dropdown list menu to switch any page
- JavaScript Page scroll, scroll a web page from bottom to top smoothly
- Ajax with JQuery - An Introduction with jQuery
- JavaScript Bouncing Marquee text scroll at Status Bar of web browser
- JavaScript Message Marquee at Status Bar of web browser
- JavaScript Christmas Countdown digital clock
