Zip class
Moderator: General Moderators
-
Sinemacula
- Forum Contributor
- Posts: 110
- Joined: Sat Feb 08, 2003 2:36 am
- Location: San Jose, CA
Great Class,
Now I have noticed some problems if you use windows XP to compress a file
(eg right click on file -> send to -> compressed (zipped) file)
and then try to extract it with zipextract.cls.php, it throws this error:
Anyway it works fine if you compress the files using winace or winzip, but it would be cool if it could some how work with the native windows compression utility as this is so damn quick, basically 2 clicks and you have the archive done.
It is probably worthy noting that this is a big "trap for young players" so it may be worth noting this somewhere conspic....
Thanks for the great class - it is the best one I have found, and the easiest to implement with exiting systems.
-Lobos
Now I have noticed some problems if you use windows XP to compress a file
(eg right click on file -> send to -> compressed (zipped) file)
and then try to extract it with zipextract.cls.php, it throws this error:
This had me stumped for a good hour and I was thinking: why do some .zip work and some not!!!! arrrrggggghhhhhNotice: Failed to extract file (0) incompatable file attributes in C:\apachefriends\xampp\htdocs\zipclass\zipextract.cls.php on line 339
Anyway it works fine if you compress the files using winace or winzip, but it would be cool if it could some how work with the native windows compression utility as this is so damn quick, basically 2 clicks and you have the archive done.
It is probably worthy noting that this is a big "trap for young players" so it may be worth noting this somewhere conspic....
Thanks for the great class - it is the best one I have found, and the easiest to implement with exiting systems.
-Lobos
Hmmm, any chance you could send me a couple of sample .zip files created with XP's native compression utility?
It's entirely possible I've not accounted for an entirely feasible/legitamate file attribute flag, or it could be that XP is using some odd flag within the attributes. Either way, I currently don't have access to an XP machine, so could really do with some sample data to work with and have a look at what the difference is between XP's and PK's compression formats.
It's entirely possible I've not accounted for an entirely feasible/legitamate file attribute flag, or it could be that XP is using some odd flag within the attributes. Either way, I currently don't have access to an XP machine, so could really do with some sample data to work with and have a look at what the difference is between XP's and PK's compression formats.
Extraction class source has been updated on relevant thread
- dibyendrah
- Forum Contributor
- Posts: 491
- Joined: Wed Oct 19, 2005 5:14 am
- Location: Nepal
- Contact:
good class
good work! Finally I found the zip creation class. Is there any alternate class which can create and extract the zip class as well ? I'll search in this forum too...
Cheers,
Dibyendra
Cheers,
Dibyendra
If you haven't found it already, the complimentary extraction class can be found here.