Re: Unzip a file.
| From: | Kim Steinhaug | Date: | Sun, 16 Nov 2003 13:03:48 +0000 |
| Subject: | Re: Unzip a file. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-169818@lists.php.net to get a copy of this message | ||
on phpclasses.org there is a ZIP class that does all you need to do.
Havnt got the time to give you the url right now, but look there.
--
Kim Steinhaug
---------------------------------------------------------------
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don't.
---------------------------------------------------------------
"John Nichel" <jnichel@by-tor.com> wrote in message
news:3FB711B6.2090504@by-tor.com...
> Vincent M. wrote:
>
> > Hello,
> >
> > Is there an easy way to unzip a zipped file which contains files
> > (images), using a function from the zlib or any.
> > To something like that:
> >
> > exec("unzip zipfile.zip -d /path/to/images") ;
> >
> > But without using the exec function.
> >
> > Thanks,
> > Vincent.
> >
>
> You may want to check here....
>
> http://www.php.net/manual/en/ref.zip.php
>
> The functions are read only. I don't know if this will do it, but it
> seems that if you can /read/ an entry in the zip file, you should be
> able to write it somewhere.
>
> However, if you just want to execute the command line app on the OS and
> not use exec(), just enclose your statement in backticks....
>
>
unzip zipfile.zip -d /path/to/images;
>
> --
> By-Tor.com
> It's all about the Rush
> http://www.by-tor.com