PHP Classes

PHP Directory Iterator: Display a list of files and directories in a path

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 53%Total: 225 This week: 2All time: 8,209 This week: 94Up
Version License PHP version Categories
directory-iterator 1.0GNU General Publi...5PHP 5, Files and Folders
Description 

Author

This class can display a list of files and directories in a path.

It can use the directory iterator class to traverse a given directory and displays the type of files that it finds.

The class can also display the time it took to traverse the given directory.

Picture of FERNANDO CUNHA
  Performance   Level  
Name: FERNANDO CUNHA <contact>
Classes: 2 packages by
Country: Brazil Brazil
Age: 44
All time rank: 3761304 in Brazil Brazil
Week rank: 109 Up9 in Brazil Brazil Up

Example

<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.

 * @author Fernando Cunha
 * @email fecunhainfo@gmail.com
 * @since 06/2016
 * */

require_once 'FileClassUtil.php';

$path = "files\\";

$file = new FileClassUtil($path);


Screenshots  
  • example
  Files folder image Files  
File Role Description
Files folder imageDirectoryIterator (2 files, 1 directory)

  Files folder image Files  /  DirectoryIterator  
File Role Description
Files folder imagefiles (4 files)
  Accessible without login Plain text file example.php Example Example script
  Plain text file FileClassUtil.php Class Class source

  Files folder image Files  /  DirectoryIterator  /  files  
File Role Description
  Accessible without login Plain text file file.txt Doc. Documentation
  Accessible without login Image file images.png Icon Icon image
  Accessible without login Image file php.png Icon Icon image
  Accessible without login Image file php_222.jpg Icon Icon image

 Version Control Unique User Downloads Download Rankings  
 85%
Total:225
This week:2
All time:8,209
This week:94Up
 User Ratings  
 
 All time
Utility:66%StarStarStarStar
Consistency:66%StarStarStarStar
Documentation:66%StarStarStarStar
Examples:66%StarStarStarStar
Tests:-
Videos:-
Overall:53%StarStarStar
Rank:2214