Re: howto get .tar.gz content's filenames
| From: | Casey | Date: | Tue, 04 Dec 2007 03:26:32 +0000 |
| Subject: | Re: howto get .tar.gz content's filenames | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-265443@lists.php.net to get a copy of this message | ||
Sorry, should be:
<?php
$names = shell_exec('...');
$names = explode(PHP_EOL, $names);
?>
Note: typed on phone. That explains my empty message :)
On Dec 3, 2007, at 7:05 PM, Shelley Shyan <Shelley.Shyan@morodo.com.cn> 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