OK, so let's say I've downloaded a file using the FTP lib and have it
sitting on my server in the current script's directory:
<?php
$projects = ftp_nlist($c, ".");
ftp_get($c, $projects[0], $projects[0], FTP_ASCII);
// Local file is $projects[0]
?>
How could I uncompress that archive into the local directory, assuming
a tar.gz filetype? I'm lost at sea in these docs: http://us3.php.net/manual/en/book.zlib.php
Thomas
sitting on my server in the current script's directory:
<?php
$projects = ftp_nlist($c, ".");
ftp_get($c, $projects[0], $projects[0], FTP_ASCII);
// Local file is $projects[0]
?>
How could I uncompress that archive into the local directory, assuming
a tar.gz filetype? I'm lost at sea in these docs: http://us3.php.net/manual/en/book.zlib.php
Thomas
Comment