<?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();
info at phpclasses dot org