7zip extension available

View: New views
3 Messages — Rating Filter:   Alert me  

7zip extension available

by ecc :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?

Thank you for your help!

Re: 7zip extension available

by Daniel Brown-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Jan 4, 2008 3:46 PM, ecc <ecc@...> 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


Parent Message unknown Re: 7zip extension available

by tg-php :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Did a quick search and didn't see anything PHP specific, but there is an SDK
and someone has done something for Python that might be adaptable:

SDK:  http://www.7-zip.org/sdk.html
PyLZMA:  http://www.joachim-bauch.de/projects/python/pylzma/


LZMA might be the magic search word, since it's the algorithm 7-Zip uses.

No time to do an exhaustive search right now, but thought I'd send that much
along.

-TG

----- Original Message -----
From: ecc <ecc@...>
To: php-general@...
Date: Fri, 4 Jan 2008 12:46:45 -0800 (PST)
Subject: [PHP] 7zip extension available

>
> 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?
>
> Thank you for your help!
> --
> View this message in context:
> http://www.nabble.com/7zip-extension-available-tp14624641p14624641.html
> Sent from the PHP - General mailing list archive at Nabble.com.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>