alexcorvi / php-zip Goto Github PK
View Code? Open in Web Editor NEWA better PHP zipping/unzipping class
License: MIT License
A better PHP zipping/unzipping class
License: MIT License
HI,
Zip is created but getting boolean(true)
Any help will be appreciated.
Thanks
BJ
I cannot add directories, and from the comment above it doesn't look like it will retain the directory structure. All files I add lose the first character of the filename.
I'm going to use another plugin until you update it, shame, would have been perfect otherwise.
Hello,
I am trying to add some folders when creating a zip file, but unfortunately I can't figure out how can I set the path or the directories content.
To summarize the issue $zip->zip_add(DIR . "/myfiles/"); puts the files and folders in the root of the zip file, in my case I want to put them under myfiles/ folder inside the zip file.
Thank you!
$v_memory_limit = substr($v_memory_limit, 0, -1); // drop G, M, or K suffix
When adding a directory that has it's own sub-directories, the zip file created contains all the files but no directories.
This is not a bug, it's rather a limitation that I'll fix as soon as I have some time.
Is there an option for ignoring or inclusion the original tree preceding of the target directory?
$this->zip->zip_files( array('main/path2/path3' , 'main/deep2/deep3'), 'path/save_here.zip');
-main/path2/path3
-main/deep2/deep3
$this->zip->zip_files( array('main/path2/path3' , 'main/deep2/deep3'), 'path/save_here.zip', FALSE);
Hope there is a third parameter for the option (TRUE or FALSE) for the inclusion or ignoring tree preceding
save_here.zip
-path3
-deep3
Hello
I'm having the deprecation warning ( php 7.0 )
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; PclZip has a deprecated constructor in inc/pclzip.lib.php on line 190
Regards
Is this possible to implement password protection with this lib, please?
adding a single file return a error
array_diff(): at least 2 parameters are required, 1 given on line 503 in vendor/php-zip/src/Zip.php
i add the file using the fallowing command
$zip = new Zip();
$zip->zip_start($path_to_zip);
$zip->zip_add($path_to_file_name); // adding a file
$zip->zip_end();
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.