PHP Classes

File: DeepDir/test.php

Recommend this page to a friend!
  Classes of Ilya Nemihin   DeepDir   DeepDir/test.php   Download  
File: DeepDir/test.php
Role: Example script
Content type: text/plain
Description: test
Class: DeepDir
Lists files from nested dirs
Author: By
Last change:
Date: 21 years ago
Size: 230 bytes
 

Contents

Class file image Download
<?php

require_once( 'DeepDir.php' );

 
$dirName = '..';
 
$dir = new DeepDir();
 
$dir->setDir( $dirName );
 
$dir->load();
  foreach(
$dir->files as $n => $pathToFile ){
    echo (
$n+1)." ".$pathToFile."\n";
  }

?>