Re: Need Some Direction
| From: | Torsten Roehr | Date: | Fri, 06 Aug 2004 12:54:15 +0000 |
| Subject: | Re: Need Some Direction | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-192985@lists.php.net to get a copy of this message | ||
"Aaron Todd" <aaloki88@hotmail.com> wrote in message
news:20040806124810.40690.qmail@pb1.pair.com...
> I hate to sound ignorant, but how do I get a file out of a .htaccess
> protected directory without logging in again? You cant use the normal
> syntax of http://username:password@domain anymore. Microsoft
> "fixed" that
> "bug".
>
> Thanks,
>
> Aaron
Hi Aaron,
because you are accessing a file via PHP from your *local* file system it
doesn't matter if the directory is protected or outside of the webroot. PHP
has access to the file (if read privilege is set). The protection is just to
deny public access.
Take a look here:
http://pear.php.net/manual/en/package.http.http-download.intro.php
Hope this helps, Torsten