<?php

/**
  This script will show how to extract
  all sort of Archive (Tar, Gzip, Zip) etc..
  
*/
require 'ArchiveExtractor.class.php';

/* Init. ArchiveExtractor Object */
$archExtractor=new ArchiveExtractor();

/* Extract */
// -Archive -Path
$extractedFileList=$archExtractor->extractArchive("/dosya/yolu/dosya.tar.gz","/dosya/yolu/acilacak/klasor/"); 

?>

<pre>
  <?php print_r($extractedFileList); ?>
</pre>