Re: [PHP] Re: Strategy for Secure File Storage

2007-09-25 Thread Andrew Ballard
Kevin Murphy wrote: > > The problem is IE7. All browsers work with this code as is but IE says > > "Internet Explorer cannot download test.pdf from XXX" The problem with IE was when you told it not to cache the document. If you just want the browser to download the file rather than let the Ad

Re: [PHP] Re: Strategy for Secure File Storage

2007-09-24 Thread brian
Kevin Murphy wrote: Ok, I'm almost there. I took what everyone said (and a few Google searches later) and built this, which works great on Firefox and Safari (both mac and PC). The $path leads to a directory outside the web root, and there is also an array with all the mime types in it ($mi

Re: [PHP] Re: Strategy for Secure File Storage

2007-09-24 Thread Kevin Murphy
Ok, I'm almost there. I took what everyone said (and a few Google searches later) and built this, which works great on Firefox and Safari (both mac and PC). The $path leads to a directory outside the web root, and there is also an array with all the mime types in it ($mimetype). $file_pa