Login   Register  
PHP Classes
elePHPant
Icontem

File: DeepDir/test.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2003-03-18 09:30
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";
  }

?>