Hi,
You could use fopen and read the file n then parse it to the reader.
$fp = fopen
("http://username:[EMAIL PROTECTED]/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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]