Re: Basic Authentication

From: Date: Tue, 19 Jun 2001 13:30:39 +0000
Subject: Re: Basic Authentication
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-7940@lists.php.net to get a copy of this message
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

« previous php.windows (#7940) next »