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: 7 years ago
Size: 635 bytes
 

Contents

Class file image Download
<?php
session_start
();
include_once
'../BigBackupMaker.class.php';
$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
$Dir->Output();

// Do something
foreach( $Dir->aFiles() as $aFile )
{
   
$sFullname = $Dir->FullName( $aFile );
    echo
"$sFullname<br>\n";
}
var_dump($_SESSION);
?>