- 1,233 categories
- 40,434 scripts
Updated: 05/15/2008
- 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.
- Categories
- Tags
- Platforms
- Licenses
- Author
- You can now start your very own Web Hosting Directory using PHP Hosting Directory. A script based in PHP and mySQL that will allow you to build your own hosting directory from scratch. It''s simple and easy to setup, and can easily be adjusted u...
- This php script uses a database to show and store the Classified Ultra Directory. This script can be used as an addition to a website or as a stand alone website. Registered users can list their advertisements and show up to 3 pictures per advertis...
- This php script uses a database to show and store the Apartment Search Directory. This script can be used as an addition to a website or as a stand alone website. Registered landlords can list their apartments for rent and show up to 3 pictures per...
- AccountStat is a simple directory viewer that used 1 PHP file with a pie chart showing the amount of space used and remaining space left from a set megabytes that you define. Shows the Total Space, Remaining Space, Space Used and Total files in the ...
- This PHP script allows you to pack all images from the current directory into an archive called index.php; access one of these images by calling index.php?pic=[PICNAME]; list all images in the archive; and unpack all images. Please note that the PHP ...