PHP Classes

File: examples/othersimpletests.php

Recommend this page to a friend!
  Classes of zinsou A.A.E.Mo´se   Big Backup maker   examples/othersimpletests.php   Download  
File: examples/othersimpletests.php
Role: Example script
Content type: text/plain
Description: example script
Class: Big Backup maker
Create backup of a directory in an archive file
Author: By
Last change:
Date: 6 years ago
Size: 635 bytes


Class file image Download
$Dir = new BigBackupMaker(true);
// Read my Directory, only htm, html and php files
// recursive, files, no directories
// add /dir/ to any entry
// don't add files/dirs containing _vti_ or vssver.scc
$Dir->Read( "./", "#(htm|html|php)$#", true, true, true, "/dir/", "#(_vti_|vssver.scc)#" );

// Sort entries descending by fullname
$Dir->Sort( 'Fullname', false );

// Output

// Do something
foreach( $Dir->aFiles() as $aFile )
$sFullname = $Dir->FullName( $aFile );