Re: protect downloadable files
| From: | olinux | Date: | Thu, 12 Dec 2002 21:11:24 +0000 |
| Subject: | Re: protect downloadable files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-128065@lists.php.net to get a copy of this message | ||
This has been covered several times recently - check
the archives.
zend.com has a great article detailing how to
accomplish this.
olinux
--- Adam Voigt <adam@cryptocomm.com> wrote:
> Make the download link a PHP page:
>
> download.php?fileid+AD0-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+APY-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+AEA-cryptocomm.com)
> The Cryptocomm Group
> My GPG Key:
>
http://64.238.252.49:8080/adam+AF8-at+AF8-cryptocomm.asc
>
> ATTACHMENT part 2 application/pgp-signature
name=signature.asc
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com