Hi, is it possible to download a zip file using curl and unzip it on the fly without saving the file from disk?
For instance:
. . . $resultZip = curl_exec($curl); $result = some_unzip_way($resultZip);
Thank! Nik
There is a flag in php curl to unzip content, if necessary
curl_setopt($ch,CURLOPT_ENCODING, '')
see this answer
Its not very simple, php has zip functions, but requires a file. Take a look at the first comment on this page, the guy describes your exact script and gives the code:
http://php.net/manual/en/ref.zip.php
Perl may be the best choice for this kind of operation.
Source: https://habr.com/ru/post/1781494/More articles:JQuery - problem with .css ('display') - jqueryHow to get into python by pressing a key without pressing the enter key? - pythonHow to get a list of uncommitted files from a turtle or svn - c #Многопроцессорность Python и сокеты не закрываются - pythonJQuery UI and maxHeight dialog box in Internet Explorer - javascriptIs a compiled python program derived from Python - pythonfastest way to call a process from python? - pythonhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1781497/swt-styledtext-table-with-measureitem-listener-jumps-to-top&usg=ALkJrhjpJJJml1b1nr5fPNOjrisG9pGl3QjQuery for selecting a subset as well as its inverse? - jqueryLINQ to Entities - Multiple Unions - Null Reference Exception in 'Select' - c #All Articles