[PHP] protect downloadable files

2002-12-12 Thread Jan Grafstrm
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

Re: [PHP] protect downloadable files

2002-12-12 Thread Adam Voigt
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.

Re: [PHP] protect downloadable files

2002-12-12 Thread olinux
This has been covered several times recently - check the archives. zend.com has a great article detailing how to accomplish this. olinux --- Adam Voigt [EMAIL PROTECTED] wrote: Make the download link a PHP page: download.php?fileid+AD0-199 Then check to make sure there session is