Location: PHPKode > scripts > pfpFileTree > example0.php
<?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();

Return current item: pfpFileTree