|
Adam Docherty - 2011-07-04 19:23:24 - In reply to message 20 from Adam Docherty
it's strange the zip you provided with sub dirs works, yet when I generate mine from the class (I used the updated one you provided), it fails...
this is the zip created from the latest zipstream you provided:
seerit.com/testapp.zip
Asbjorn Grandt - 2011-07-04 19:52:04 - In reply to message 21 from Adam Docherty
I assume you tried the new ZipStream I just uploaded along with the ZipStream.Hello.zip.
A slightly smaller testapp.zip might have been beneficial for me, 2MB in a hex editor is a pretty daunting task :)
Asbjorn Grandt - 2011-07-05 07:22:13 - In reply to message 22 from Asbjorn Grandt
Try the two new files
ZipStream v. 1.27:
grandt.com/test/Zip/ZipStream.zip
And the test hello worls zip file:
grandt.com/test/Zip/ZipStream.Hello ...
The reason you saw a difference between my previous "Hello World" test and your own directories, were that that Hello.zip didn't explicitly add a directory as part of the test.
I think I got a handle on the files now. please confirm.
brian - 2011-07-05 13:03:24 - In reply to message 23 from Asbjorn Grandt
Wow, I have been following this thread.
I downloaded the file Hello.zip and it opens well
in both windows and mac (with default archive utility).
It seems real promising! Great work Asbjorn.
I have yet to test the new class in my own environment,
will post if it works!
Brian
Adam Docherty - 2011-07-05 17:27:37 - In reply to message 23 from Asbjorn Grandt
Sadly still not working for me - it might be because the archive I am creating is pretty big - lots of directories and files. I haven't got time at the moment, but soon I will try with a less complex file / dir set to see what happens.
Thanks a lot to Mr. Grandt, I really appreciate the work he has been doing here. I am sure we will crack it in the end!
Asbjorn Grandt - 2011-07-05 17:44:19 - In reply to message 25 from Adam Docherty
Alex, what is the error you are getting? or does it just unzip as garbage?
Asbjorn Grandt - 2011-07-05 17:49:28 - In reply to message 26 from Asbjorn Grandt
Sorry, I meant Adam.
And try to adjust the constant EXT_FILE_ATTR_FILE to "\x00\x40\xed\x81". What this will do is put unix rights rwxr-wr-w (755) on all files, as they are in the sample you provided that worked. Currently I'm setting it to rw-r--r-- (644)
I can't see why that may be the cause, but it's worth a try.
Asbjorn Grandt - 2011-07-05 18:16:46 - In reply to message 27 from Asbjorn Grandt
Please check the large file, to ensure you don't have an exception at the end. Apparently PHP itself have a 30 second execution time limit.
ini_set('max_execution_time', 120);
increases that to 120 seconds.
I was under the assumption that as long as the script were providing data to the stream, it wouldn't time out, and while the browser don't, PHP apparently does.
Adam Docherty - 2011-07-05 23:41:15 - In reply to message 28 from Asbjorn Grandt
Yeah I get what you mean, but it is not timing out because it is all bundling up fine and downloading fine and opening fine (apart from the native mac archiver) - it opens in winzip for mac and the zip is actually a component for another application and the component also installs fine. So the it is all working properly, just not opening with the native mac archive utility :(
Thanks!
Asbjorn Grandt - 2011-07-06 04:18:41 - In reply to message 29 from Adam Docherty
Adam, can I get you to make a few trials, to see if it's the number of files, the overall size or both that is causing the native archive tool the trouble.
For instance:
* 2-3 small files and a directory
* 2-3 large files (5+ MB) and a directory
* 2-3 files in a deep directory (the deepest you have in the archive you are currently having trouble with)
* Hundreds of small files in a flat directory
Please let me know which of these tests fails on your Mac, and which works, describing which tests what aspect, and what exactly the error you get is. Or does the native archiver just plainly refuse to open it without warnings?
|