Category : zip

I use Windows Subsystem for Linux to run Ubuntu 16.04. When I download the archive using wget on Ubuntu and try to unzip it ~$ unzip protoc-3.19.1-linux-x86_64.zip I get an error Archive: protoc-3.19.1-linux-x86_64.zip End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the ..

Read more

when a zip file creation script is called the file created has some random characters at the end, Like this ‘data.zip8Cp785Cd’ $dir =’../data/data/’; $destination = $dir.’data.zip’; $zip = new ZipArchive(); if($zip->open($destination,$overwrite ? ZIPARCHIVE::OVERWRITE : ZIPARCHIVE::CREATE) !== true) { echo "Error"; } $zip->addFile(‘./data/data.txt’,’datafile.txt’); $zip->close(); Source: Windows..

Read more