Hi there,
Is there a better way?
I'm looking for any suggestions on how to provide a secure file download, please.
By secure, I mean that a user must be logged in, and spefically be granted access to download an individual file, as controlled by customized php.
I want to avoid sending a url pointing directly to a file that anyone can copy and paste, which would completely get around any authorization and security built into a php script.
I am currently using php to output a file by reading it from disk, outputting the mime content type and then sending the file data. This works, but also causes the well known IE File Open/Save issue.
Is there a better way? Thanks!
P.S. This would make a good article on phpbuilder.net