GithubHelp home page GithubHelp logo

php-zip's People

Contributors

alexcorvi avatar alselawi avatar ganofins avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

php-zip's Issues

Return Value Issue

HI,
Zip is created but getting boolean(true)
Any help will be appreciated.
Thanks
BJ

No directories added, filenames lose the first character

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.

How to set the path of the files/folders when creating an archive

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!

Directories inside the created zip file

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.

Option for ignoring original tree preceding of the target directory

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');

inside the 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

Expected result inside the save_here.zip

save_here.zip
-path3
-deep3

Deprecation notice

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

error adding file

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();

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.