Re: How to adress pictures stored outside of the http server root?
| From: | Miguel Cruz | Date: | Thu, 21 Mar 2002 17:28:42 +0000 |
| Subject: | Re: How to adress pictures stored outside of the http server root? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-89555@lists.php.net to get a copy of this message | ||
On Thu, 21 Mar 2002, andy wrote:
> "Rasmus Lerdorf" <rasmus@lerdorf.ca> schrieb:
>> The way to do this is to write a little PHP wrapper script that you
>> stick in your document_root that does a readfile() on the file stored
>> outside of the document_root.
>
> What would you suggest to prevent people from downloading all the image
> files?
Here's one idea: write a little PHP wrapper script that you stick in your
document_root that does a readfile() on the file stored outside of the
document_root.
miguel