Hi all..
Thank you to those who responded in my time of need...
I think I have it sorted..
That is I think... I'm not sure if I trust this to be right... I'm beginning to think PHP doesn't like me...
Firstly, the zip (open :: create) statement will not actually create a file... Silly me... there I was thinking that to create something you actually created something... Dumb assumption, as it turns out... it is actually the CLOSE statement that writes the memory stream (I knew it was created somewhere) to the disk...
Secondly somewhere I read that the open( $zipName, ZIPARCHIVE::CREATE) is unreliable, (boy that's news) and that you should use
= $zip->open( $zipName, ZIPARCHIVE::CREATE | ZIPARCHIVE::OVERWRITE ); which I'm now using and it works... I suppose the former also works but I'm not going backwards to check it out...
Third problem,,, I didn't actually get a result till I added text or a file to the archive.. I think the close statement saw me coming on that one.
and finally, one more mystery... I used $Zip->status and got '0' as a result... I then looked up the manual to find what the status values mean... Couldn't find any reference to a list of codes for status anywhere.. I hope '0' means "Ok"
Thanks again to those who pointed me in the right direction...
sorry for being a little sarcastic, but after three days, well you've all been there.
Kind Regards
CNielsen4211 (happy now )