Forum Moderators: coopster
I don't want to have to decrypt, then download.
Is there some way to encrypt the file so that it can be decrypted as downloaded?
Something like:
readfile (exec(some-decryption-command));
I really don't know, in fact, I'm not sure if I can explain correctly what I want! :)
Do I?
My server is OpenBSD 3.0 and PHP 4.0.6
May I suggest two alternative solutions?
1) When the file is uploaded it will be placed in a directory that is not accessible through the browser .. meaning, the file would have to be downloaded using your PHP script.
2) When the file is uploaded its contents will be read and placed in a database (depending on file size). When the user requests the file its contents are fetched from the database.