Re: protect downloadable files
| From: | Adam Voigt | Date: | Thu, 12 Dec 2002 16:01:14 +0000 |
| Subject: | Re: protect downloadable files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-128026@lists.php.net to get a copy of this message | ||
Make the download link a PHP page:
download.php?fileid=199
Then check to make sure there session is valid, and what not
and then use the header function to make the browser know it's supposed
to give a save dialog box. I don't specifically know the code, but I
know this will work.
On Thu, 2002-12-12 at 10:56, Jan Grafström wrote:
Hi,
I have some zipfiles in a directory and wonder how to protect the
files?
I send the customer to a downloadpage with links after succsessfull
login.
What is best to do? chmod the files when I upload them and change
chmod if I
have a verifief user?
Any suggestions?
--
Regards
Jan Grafstrom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Adam Voigt (adam@cryptocomm.com)
The Cryptocomm Group
My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc