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: zip
zip file made by php shows wrong folder structure in js-dos but correct in windows
I am working on a project which requires me to collect several files from the server, zip them, and mount the zip as a drive with js-dos. Everything works ‘correctly’. During testing I manually made a zip file in windows and the code ran. For the final test I tried to mount the php generated zip but the folder structure
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 …
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
Zip getting corrupted when uploaded to php as chunks
first of all, I am new to programming and starting to learn it, so my code is a mess or has flaws that you, experienced programmers, see, feel free to notice me. I will be grateful! So to my problem. …
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,
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
How to solve cUrl corrupting file during download
I really, really need help as to how to solve this issue I’m having: Using script: