I am using the script include below to read the content of a file and output it. When I load this script with the adress of a plain html file it outputs everything like expected, except there are some extra characters spread over the file. They come in little string like '40d' or '1000' and appear on positions where there is 'nothing' in the original source file. Any idea what could cause that behavior? Stefan <? $myServer = 'xxx.xxx.xxx.xx'; $document = 'index.shtml'; $fp=fsockopen($myServer,80,&$errno,&$errstr,30); $request = "GET $document HTTP/1.1\r\nAuthorization: Basic "; $request .= base64_encode("xxxxxx:xxxxxx") . "\r\n"; $request .= "Host: $myServer\r\n\r\n"; if(!$fp) { echo "$errstr ($errno)<br>\n"; } else { fputs($fp,$request); while(!feof($fp)) { $line=fgets($fp,4096); echo $line; } fclose($fp); } ?> -- PHP General 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]