PHP Classes

File: examples/archivemaker.php

Recommend this page to a friend!
  Classes of zinsou A.A.E.Moïse   Big Backup maker   examples/archivemaker.php   Download  
File: examples/archivemaker.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: 558 bytes
 

Contents

Class file image Download
<?php
session_start
();
include_once
'../BigBackupMaker.class.php';
$Dir = new BigBackupMaker();
$mypath="../../pootest/wp-includes/";/*relative path works in every situation ...for test you must
replace the folder by existing folder...here "pootest" is supposed to be in root directory of the server
but you can choose any directory provided that your relative path is correct*/

$archive='archive';//name of the new backup folder
$Dir->Read($mypath, "", true,true,false,"", "" );
$Dir->create_Hierachy($mypath,$archive,"./copyfile.php");
?>