Login   Register  
PHP Classes
elePHPant
Icontem

File: example_untar.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Neleus  >  tarX  >  example_untar.php  >  Download  
File: example_untar.php
Role: Example script
Content type: text/plain
Description: restore example
Class: tarX
Dump and restore directories into archive files
Author: By
Last change:
Date: 3 years ago
Size: 483 bytes
 

Contents

Class file image Download
<?php
  
require_once('dump_dir.php');

  
//Example:
  //put this file together with dump_dir.php to any directory, for exmaple '_extracted'
  //and give it (directory) write permissions.
  //Also put there dump files htdocs.tarx.dmp and htdocs.tarx.tree.
  //Below code will restore all files from dump htdocs.tarx.dmp and htdocs.tarx.tree to _extracted.
 
  
tar_x::restoreDirectory(dirname(__FILE__).'/htdocs.tarx'dirname(__FILE__));
  print 
'Restore completed';
  
?>