Re: 7zip extension available

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

 



On Jan 4, 2008 3:46 PM, ecc <ecc@xxxxxxxxx> wrote:
>
> Hi,
> i´ve searched a little bit, but found no page talking about an 7zip (.7z)
> extension for php. Is there an way to extract data from 7zip archives from
> within an php script?

    You could try exec() or one of the family to do the job:

<?
    exec('p7zip -f file.7z',$ret,$err);
    // The array $ret contains the stdout response while $err contains
any error messages
?>

    I haven't really used 7-ZIP, but the Unix/Linux port p7zip is
probably going to be your best bet from the *nix CLI.

-- 
Daniel P. Brown
[Phone Numbers Go Here!]
[They're Hidden From View!]

If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.

-- 
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