Set of functions to create PKZip (Winzip) files in PHP
Be the first to post a text review of PKZip library for PHP. Rate and review a project by clicking thumbs up or thumbs down in the right column.
Added a small 'fix' to set the right version number.
Posti_P e-mailed me with the problem that there's an error on Line 27. This is NOT my fault, in fact, it isn't even an error in modern PHP. The method of declaring a function in a class is the method recommended by the PHP team. This method however only works with PHP5. If you are experiencing any problems, and you're not using PHP5, please look into the docs section to see how to alter phpziplib to work with PHP4, or use ZipLib 0.2. No significant changes have been made between version 0.2 and 0.4, other then adding bzip-support and reading zipfiles, so for writing zipfiles, 0.2 will do.
Todat PHPZiplib reached version 0.4. Changes in this release are added BZip2 compression and decompresion method. Note that by compressing with BZ2 only users of WinZip 9.0 and my ziplib can read the file, Winrar, UnZip 5.5.0 and the built in support for compressed files in WinXP cannot read the files in an archive compressed with BZ2. Also, I made a small function to read dostime, so when reading a file, you know the date and time. This function has been written on a little-endian machine, but I am unable to test it on a big-endian machine. That's where I need testers for. If anyone has a mac or other big-endian machine left, and feels like helping me, i'll be really grateful :). Possible pitfalls might be the decompression of files created on a big-endian machines and returning an incorrect time when 'decoding' the dostime. For the rest, enjoy this release :)
Be the first person to add a text review.
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use
Thanks for your rating!
Would you also like to write a review?