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 L
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
pas