The Mark of The Web and PHP generated files

wow. running in circles.

so i’m allowing my users to quickly ZIP up a folder containing some images and generated XML files. the ZIP gets downloaded fine.

the user starts by opening open_me.htm which (because it contains js and a swf) triggers all of IE’s (on XP) most annoying security alerts.

i found The Mark of The Web (MOTW: http://msdn2.microsoft.com/en-us/library/ms537628.aspx) which if added to the HTML file will bypass these security alerts. it looks like this:

<!-- saved from url=(0014)about:internet -->

The problem is that it works with a ZIP and files that are generated on my machine. but when i use the ZIP that was were generated on the server, the MOTW doesn’t work, and the security alerts pop up again. so there must be some marker that’s attached when PHP writes the original files and ZIPs up the archive that IE can distiniguish (and discriminate against). i’m wondering if there’s some way to change the attributes of the file… if there’s some general “created by” marker that i can alter after the creation to bypass this.

just being optimistic… i know microsoft will have the last laugh regardless.

thanks