<?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"; } ?>
info at phpclasses dot org