PHP Classes
elePHPant
Icontem

File: example0.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Colin McKinnon  >  pfpFileTree  >  example0.php  >  Download  
File: example0.php
Role: Example script
Content type: text/plain
Description: example
Class: pfpFileTree
Manipulates files in directories recursively
Author: By
Last change:
Date: 4 years ago
Size: 260 bytes
 

Contents

Class file image Download
<?php

/**
 * this example would list all the files with a
 * .jpg extension
 */

// ----------- initialise ------------
require_once('pfpFileTree.inc.php');

$src='/var/www/html';

$t=new pfpFileTree($src);

$t->readTree(array('name'=>'*.jpg'));

$t->ls();