Hi there,
Try something like this:
<?php
$login = "myname";
$passwd = "mypasswd";
$url = "www.somewhere.com/path/zo/file.html";
$entireurl = "http://$login:$passwd@$url";
$lines = file($entireurl);
$content = implode("", $lines);
?>
This works at least for text files
Cheers, Markus