Login   Register  
PHP Classes

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: 11 years ago
Size: 230 bytes


Class file image Download

require_once( 'DeepDir.php' );

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