Re: Authenticate files downloads
| From: | Michael Sweeney | Date: | Tue, 06 Aug 2002 21:48:56 +0000 |
| Subject: | Re: Authenticate files downloads | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-111440@lists.php.net to get a copy of this message | ||
You put the files in a directory outside your web document tree and use
php to transfer the files. You'll need to send a header with the
appropriate mime type for the file.
..mike..
On Tue, 2002-08-06 at 13:51, Daniel Guerrier wrote:
> I'm trying to use php to validate if a user has
> permission to download a file. I can restrict them
> from accessing the .php file that has the download
> links. But how do I stop someone from typing in the
> path to the file directly and downloading it.
>
>