Login   Register  
PHP Classes
elePHPant
Icontem

File: changedSinceFiles/pp.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Ilya Nemihin  >  Changed Since Files  >  changedSinceFiles/pp.php  >  Download  
File: changedSinceFiles/pp.php
Role: Example script
Content type: text/plain
Description: example of usage
Class: Changed Since Files
Synchronize directories copying changed files
Author: By
Last change:
Date: 10 years ago
Size: 763 bytes
 

Contents

Class file image Download
<?php

require_once( './include/ChangedSinceFiles.php' );
require_once( 
'./include/DeepDir.php' );
require_once( 
'./include/File.php' );
require_once( 
'./include/DateTime.php' );


//------------ configuration -------------
$params = array();
$params['source_dir'] = '../pp/pp';
$params['dest_dir_root'] = './changed/pp';
$params['changed_since'] = '2004-08-04 00:00:00'// year.month.day hour:minutes:seconds
$params['debug_mode'] = 0// showing log messages
//----------------------------------------


$changedSinceFiles = new ChangedSinceFiles$params );
$changedSinceFiles->setDeepDir( new DeepDir() );
$changedSinceFiles->setFile( new File() );
$changedSinceFiles->setDateTime( new DateTime() );

$changedSinceFiles->doIt();


?>