Re: restricting files
| From: | Justin French | Date: | Sat, 08 Jun 2002 06:56:00 +0000 |
| Subject: | Re: restricting files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-101250@lists.php.net to get a copy of this message | ||
When you say serve the files through a script, I assume you mean
"download.php" force-feeds an MP3 (or whatever) to the browser.
Is this correct?
I read people have lots of problems with this...
Justin
on 08/06/02 4:08 PM, Jason Wong (php-general@gremlins.com.hk) wrote:
> On Saturday 08 June 2002 13:46, Justin French wrote:
>> MP3 and quick time -- otherwise the solution would be easy :)
>>
>> Thanks,
>>
>> Justin
>>
>> on 08/06/02 3:42 PM, Jason Wong (php-general@gremlins.com.hk) wrote:
>>> On Saturday 08 June 2002 09:19, Justin French wrote:
>>>> Hi,
>>>>
>>>> I wish to restrict access to a dir of files, depending on if the user is
>>>> a logged in and validated member.
>>>
>>> What kind of files are they? html? php? or others?
>
> The quick answer is, store the files outside of the website's DOCUMENTROOT,
> then serve the files through a script (which naturally checks whether the
> user is logged in).