Re: Download files outside DocumentRoot Dir
| From: | Richard Lynch | Date: | Tue, 26 Sep 2006 22:39:48 +0000 |
| Subject: | Re: Download files outside DocumentRoot Dir | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-242251@lists.php.net to get a copy of this message | ||
On Mon, September 25, 2006 3:57 pm, Christopher Weldon wrote:
> On 2:36 pm 09/25/06 "Ramiro Cavalcanti" <ramiro@hostcom.com.br> wrote:
>> Hi Christopher,
>> at first, thank you for your answer.
>>
>> I'd like to know if it's possible use this when php is running like
>> cgi (php-suexec). I've put this code at httpd.conf at <module php>,
>> then tryed to use it at .htaccess, but without successs.
>>
>> Thank you again.
>>
>
> Oh, in that case, you most definitely can't use the .htaccess
> conditions.
> PHP will have issues if you are running php-suexec.
>
> I'll see if I can think of any other ways around this, but php-suexec
> definitely limits your usage for this simple fix right now.
If you *want* that ugly HTTP Auth popup box, you can search on php.net
for code to do that.
If not, you can take that code, and replace the HTTP challenge with a
simple login form.
If they aren't logged in, the download just doesn't go...
--
Like Music?
http://l-i-e.com/artists.htm