Re: Basic Authentication
| From: | Thomas Dedeyne | Date: | Tue, 19 Jun 2001 14:32:34 +0000 |
| Subject: | Re: Basic Authentication | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-7943@lists.php.net to get a copy of this message | ||
Thanks for the help, but in fact I don't use authentication to open a file,
but I use it for writing in a folder. So, people who are logged in get write
access, other people (who are not logged in) can only view the folder.
But I'll give it a try with your suggestion. :)
Thanks again.
"Johan Lundqvist" <johan@noatun.org> schreef in bericht
news:3B2F53FF.4560365F@noatun.org...
> Hi,
>
> You could use fopen and read the file n then parse it to the reader.
>
> $fp = fopen
>
> ("http://username:password@www.whatever.com/folder/file.html",
> "r");
>
> Have a closer look at fopen() and the "Filesystem" section in PHP
> manual.
>
> Just a warning: Be very, VERY careful when dealing with usernames and
> passwords like this. They must never get exposed in anyway. Your most
> dirty mind just can't imagine what people end up doing with it...
>
> /Johan
>
> Thomas Dedeyne wrote:
> >
> > Hello,
> >
> > I have a folder with some restrictions on. Now I want to give some
people
> > access to this folder and some not from within my webpage. When I use
basic
> > authentication, I get a window where I can enter my username and
password.
> > That's OK, for a bit. :) I want to get rid of that window and give my
> > username and password via php code, so I don't get or see that window
> > anymore. I hope you know what I mean :).
> > I use Win2k with IIS5.
> >
> > Thanx for the help!
> >
> > Greetz
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-windows-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>