Menu

PKZip library for PHP / News: Recent posts

Using PHPZipLib with PHP4?

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.

Posted by Anonymous 2004-08-30

PHPZipLib 0.4 released - testers needed!

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 :)

Posted by Anonymous 2004-08-29

PHPZiplib 0.3.1 - Whoops

I kinda slipped up with my 0.3 release, this was a 'debugging' version, forgot to change back some funtionality. Luckily I found out soon enough, so 0.3.1 really works! And when I was still at it, I reduced the amount of memory needed to index a zipfile. Don't worry, I will try to reduce this even more, just wait and see :).

Posted by Anonymous 2004-08-16

PHPZipLib 0.3 released

After 4 months of inactivity it seemed fair to me to update this ziplib again ;). This time a start has been made to read-support of zipfiles. This has not been intergrated with the rest of the lib, so expect some usage changes in the future. It kinda works thou, on small zipfiles (PHP memory limit), but it aint really efficient yet.
Also I changed the code to suit PHP 5 just a little bit more.... read more

Posted by Anonymous 2004-08-13

PKZip library 0.2a released!

[note to me] I should submit news more frequently [/note to me]

I believe 0.2 was a small step for men, but a giant leap for mankind! This release uses classes which is more efficient and safer. This release no longer uses the $GLOBALS variable, so they're all back to the developer. Besides, by using classes you can work on several Zipfiles at the same time, just define a new class.

Coming for the next version (which I don't have much time for, just be patient please): memory saving by using the filesystem as swap space when nessecary (I believe archives can't get any larger then the maximum memory reserved for PHP, which is usually set to no more then 8MB, which is way too small), and in the far future, reading zipfiles.

Posted by Anonymous 2004-06-10

PHPZipLib 0.1 released

ok, i'm a little late with this message, but 0.1 of PHPZiplib is released a while ago. PHPZipLib is a set of php-functions to create PKZip files in PHP, and in the future it might even read aswell(if i'm not too lazy). It goes without saying that this release is capable of writing Zip-files, creating a dostime format(so it actually adds correct dates) and notitions to the zipfile itself. The code's a bit (read: extremely) messy, and these functions will eventually be turned into a class. For now this is what has to do. Enjoy PHPZiplib 0.1!

Posted by Anonymous 2004-04-02
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.