Php > Complete Programs
Directory viewer customize how you display the file structure easy to
Directory viewer customize how you display the file structure easy to
Dir View
PHP Directory Viewer
File Name
File Size
Description
"; $filename=$filelist[$count]; $file_path = "$dir_name/$filename"; $filesize = filesize($file_path); // You can use another function to format this, but you get the idea. if (is_file($file_path)) { // fleBLK.gif is a small icon of a file (draw yourself one and use that or use anything you want) echo "
"; echo "
$filename
"; echo "
$filesize bytes
"; // I suggest you change "File" to a function returning a better description or remove it completely (make sure you take them all out though) echo "
File
"; } elseif(($filename != ".") && ($filename != "..")) { // DirBLK.gif is a small icon of a folder (draw yourself one and use that or use anything you want) echo "
"; echo "
$filename
"; echo "
dir
"; // I suggest you change "Directory" to a function returning a better description or remove it completely (make sure you take them all out though) echo "
Directory
"; } print ""; } ?>
Php Codes
Algorithms
Arrays
Authentication
Calendar
Code Snippets
Programs
Content Manage
Contest Related
Cookies
Credit Cards
DBase Related
Databases
Date Time
Directories
E-Mail
Errors
File
File System
Forms
Handling
Graphics
HTML and PHP
Informix
Ingres
InterBase
LDAP
Look and Feel
Miscellaneous
MySQL
Other
PHP Classes
Searching
Navigation
Statistics
Strings
User Manage