PHP Classes

PHP Folder Tree View: Generate HTML to display s list of directory files

Recommend this page to a friend!
  Info   Demos   View files View files (29)   DownloadInstall with Composer Download .zip   Reputation   Support forum (4)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2023-08-29 (7 months ago) RSS 2.0 feedStarStarStarStar 60%Total: 1,249 This week: 1All time: 3,059 This week: 66Up
Version License PHP version Categories
folder-tree-view 1.0.1BSD License5HTML, PHP 5, Files and Folders


This class can generate HTML to display s list of directory files.

It can traverse a directory with a given path and generates a HTML list to show the files and directories inside the listed directory.

The sub-directories are listed first before the files.

The listed entries have certain CSS styles, so they can be rendered with specific icons.

Additional JavaScript may be used to browse the sub-directories using AJAX requests.

Picture of Savoul Pelister
  Performance   Level  
Name: Savoul Pelister <contact>
Classes: 2 packages by
Country: United States United States
Age: ???
All time rank: 1940271 in United States United States
Week rank: 80 Up8 in United States United States Up

  Folder Tree ViewExternal page  
  Files folder image Files  
File Role Description
Files folder imagecss (1 file, 1 directory)
Image file folder_tree-view.jpg Screen Folder Tree view with PHP and jQuery
Plain text file Folder_tree.php Class Tree view class
HTML file index.html Data sample page

  Files folder image Files  /  css  
File Role Description
Files folder imageimages (25 files)
  Plain text file filetree.css Data CSS file

  Files folder image Files  /  css  /  images  
File Role Description
  Image file application.png Icon Icons
  Image file code.png Icon Icons
  Image file css.png Icon Icons
  Image file db.png Icon Icons
  Image file doc.png Icon Icons
  Image file file.png Icon Icons
  Image file film.png Icon Icons
  Image file flash.png Icon Icons
  Image file folder.png Icon Icons
  Image file folder_open.png Icon Icons
  Image file html.png Icon Icons
  Image file java.png Icon Icons
  Image file linux.png Icon Icons
  Image file music.png Icon Icons
  Image file pdf.png Icon Icons
  Image file php.png Icon Icons
  Image file picture.png Icon Icons
  Image file ppt.png Icon Icons
  Image file psd.png Icon Icons
  Image file ruby.png Icon Icons
  Image file script.png Icon Icons
  Image file spinner.gif Icon Icons
  Image file txt.png Icon Icons
  Image file xls.png Icon Icons
  Image file zip.png Icon Icons

 Version Control Unique User Downloads Download Rankings  
This week:1
All time:3,059
This week:66Up
User Ratings User Comments (1)
 All time
6 years ago (Abdullah ARAPKiRLi)