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
Tag: ziparchive
ZipArchive::addFile() creates zip files with tree structure in Windows but flattened in Linux
I used PHP’s ZipArchive library to create a zip file to easily transfer images for some e-shop synchronization service from a desktop to the web server of the e-shop. The script I used to create the zip is below: My problem is that when you view the zip’s contents in WinRAR, they are shown normally as expected in folders; when
Is there a way to stream a remote file as “zipped” without downloading to server?
Look at this simple code This code together with the link are examples. My server is working as if it were a kind of proxy. Displaying a …
Ziparchive always includes parent directory
I am trying to zip all files and folder within a folder The structure looks like so: storage/app/3 – folder 1 -file 1 -file 2 – folder 2 -file 3 When I run the zip script I want the zip to …
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
ZipArchive::close(): Renaming temporary file failed: Permission denied
I have this strange error, when I try to delete a file inside a compressed directory : Here is my code : The echo executes successfully and prints File deleted. I am running a Mac and the permissions on the compressed directory is read & write for all users. What could be the issue? Answer As the error tells you,
zipArchive with MAMP?
trying to work out how to install zipArchive extension with MAMP, but not having much luck any know how to do this? I have no idea Answer Answering my own question for completeness. JUST UPGRADE MAMP!!! Sorry for shouting 😉