File: example_untar.php

Recommend this page to a friend!
  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: 10 years ago
Size: 483 bytes


Class file image Download

  //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__));
'Restore completed';

For more information send a message to info at phpclasses dot org.