RE: [PHP] Downloads for subsrcibers only
| From: | Daevid Vincent | Date: | Mon, 02 Apr 2007 20:09:58 +0000 |
| Subject: | RE: [PHP] Downloads for subsrcibers only | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-251953@lists.php.net to get a copy of this message | ||
Look at mod_auth_mysql. Then authenticate your pdf directory against that
database of users.
Otherwise anyone who knows the direct link to your PDF can download it,
bypassing all your 'subscription' security.
> -----Original Message-----
> From: Mário Gamito [mailto:gamito@gmail.com]
> Sent: Sunday, April 01, 2007 1:54 AM
> To: php-general@lists.php.net
> Subject: [PHP] Downloads for subsrcibers only
>
> Hi,
>
> I made this site in PHP that has a page with some PDFs to download.
> My costumer wants that only subscribed people are allowed to download
> the PDFs.
>
> I've already made the subscrbe and login mechanism.
>
> Now, my question for you is about letting only subscribers
> download the
> PDFs.
> What is the best approach ?
> Register a session when they login and then in the PDFs page apply a
>
> if email is registered
> you can download the PDFs
> else
> you can't
>
> Something like this ?
> Or is it there a better way ?
>
> Any help would be appreciated.
>
> Warm Regards
> --
> :wq! Mário Gamito
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>