Re: howto get .tar.gz content's filenames

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



<?php
 shell_exec('gunzip -c foo.tar.gz | tar -tvf -');
?>

Tell me if it works ;)



On Dec 3, 2007, at 7:05 PM, Shelley Shyan <Shelley.Shyan@xxxxxxxxxxxxx> wrote:

Hi all,

It may not be a php question, but I want to get the filename lists that a .tar.gz file contains and give it to an array.
How can I manage that?

Thank you very much for your consideration.

Regards,
Shelley

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux