|
brian - 2011-07-01 17:07:21 - In reply to message 10 from Adam Docherty
Hi,
actually i believe the creation of zip on a local computer versus dynamically online is different.
I did try and Zip files created with this author's class can still be opened on mac with other free unzip programs found off the web.
Also, maybe this another class by Paul Duncan called yes also zipstream may help because zip files created does open in mac with the default unarchive utility. Ironically the issue is reversed in this case, and the zip file cannot be opened on windows. I've tried manipulating the classes to no success.
Link: http://pablotron.org/software/zipstream-php/
Brian
Asbjorn Grandt - 2011-07-01 17:34:01 - In reply to message 11 from brian
What I would like to have tested is if a zip created with my class, download on a Windows PC is acting differently than one downloaded on a Mac when opened on a Mac.
I see no reason why that would be the case, then again, the whole problem have me baffled.
I'll have a closer look at Adam' zip file tomorrow.
Another thing. Have any of you tried to use my other Zip class, it should result in binary identical files, but the delivery is different, it might influence the result on the Mac.
The reason I'm asking is that the problem might be the transfer method introducing errors in the download, meaning I've been looking at the wrong place all along if that is the case.
Asbjorn Grandt - 2011-07-03 11:45:28 - In reply to message 12 from Asbjorn Grandt
Asbjorn Grandt - 2011-07-03 14:18:00 - In reply to message 13 from Asbjorn Grandt
Adam Docherty - 2011-07-04 15:10:48 - In reply to message 14 from Asbjorn Grandt
The zip example you provided above does open, unfortunately the new beta class generated zips to not open on mac. Could it be because the zip I am generating contains directories?
Asbjorn Grandt - 2011-07-04 15:21:42 - In reply to message 15 from Adam Docherty
I'll test it later tonight.
Can you try making a working zip with directories, like the previous one you provided. Your helloworld.zip did help me a lot in figuring out what is needed.
On a different note, I do think I'm using the Windows directory separator '\', maybe I should change that to the Unix /, not that my Zip claims to BE a Unix generated Zip :)
Asbjorn Grandt - 2011-07-04 15:24:39 - In reply to message 16 from Asbjorn Grandt
Correction, I am using a forward slash in the directory paths, so that was not it.
Asbjorn Grandt - 2011-07-04 18:42:58 - In reply to message 17 from Asbjorn Grandt
I have looked at the files with dir entries, and there are some bytes missing along the way.
zipinfo gives me
"There are an extra -4 bytes preceding this file."
after each dir entry...
I'm looking into it now.
Asbjorn Grandt - 2011-07-04 19:13:05 - In reply to message 18 from Asbjorn Grandt
Apologies for spamming you. Please try the two links I posted previously, I updated the ZipStream a bit, a pair of fields that in the specification were marked as "optional" apparently weren't.
The ZipStream.Hello.zip now contains 3 Hello Worlds. The regular one, and 2 in a sub dir. I also added file and archive comments.
Adam Docherty - 2011-07-04 19:14:38 - In reply to message 16 from Asbjorn Grandt
Here you go - working zip with directories:
seerit.com/ziptest.zip
|