Skip to content
Advertisement

Tag: zip

Download PHP ZipArchive returns corrupt, blank zip file

I’ve had a look at various threads about ZipArchive and how to get files to download. However, I’ve gotten a bit stuck here. I currently have a form that looks like this Within that form, are some aspects that come from the rest of the script, which is here: I’ve tested all of the other bits, like the generation of

Zip files in a directory use part of URL as file name

I use a php file to created zip archive of all jpg files in a folder and make it available for download. Here is the script: I was wondering if it is possible to use part of url as archive name? My URLS look like this: I want the archive name to be Pictures-Album-CustomText.zip Answer You have a couple of

extract 7z extension – PHP

I am wondering if PHP can extract the *.7z extension. I have searched a lot about it and I all what I see is *.zip, *.rar etc… but not 7z. Here is the code that I have tried. ZipArchive(); is not supporting 7z. I have many 7z files and I am looking to let PHP unpack them to get information

Upload a ZIP file and UNZIP ftp folder via PHP

I want to make a form where you can fill FTP login server and get option to upload ZIP file. The script works apart from the last part (UNZIP the file) I want to perform UNZIP uploaded file. Does anyone know what is the problem? TIA THE ERROR Successfully uploaded ftp://:@ftp.***.com/htdocs/file.zip Warning: ZipArchive::extractTo(): Invalid or uninitialized Zip object in C:xampphtdocsupload.php

The gzuncompress of php equivalent on javascript

I have a php file that do: and on javascript i do a request on php and i want a function that do the same of gzuncompress(data) for take the result = “TEST COMPRESS” again on client side. EDIT: Thank you @aaronk6, zlib worked! If someone ready this question, the zlib will works if the php is with gzencode(), gzcompress

Advertisement