Location: PHPKode > scripts > tarX > example_untar.php
<?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';
  
?>
Return current item: tarX