php - 用curl下载zip文件并解压缩吗?

Hi is there any possibility to download a zip file with curl and unzip it on the fly without to save the file ot the disc?

For example:

.
.
.

$resultZip = curl_exec($curl);

$result = some_unzip_way($resultZip);

Thanks! Nik

Its not super easy, php has zip functions, but require a file to exist. Look at the first comment on this page, the guy describes your exact scenario and gives some code:

http://php.net/manual/en/ref.zip.php

Perhaps Perl is a better choice for that kind of operation.