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

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



Reply via email to