PHP Classes

File: example0.php

Recommend this page to a friend!
  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: 13 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();