PHP Code:
$host "www.yahoo.com";
$fp fsockopen($host,80);

//some http-connection stuff

while (!feof($fp))
echo 
"getting site";
$buf .= fgets($fp,128);
fclose($fp);

echo 
$buf
Problem with this is that it prints "getting site" a million times
untill the socket is finished How can I make it print it only 1 time
on the page? Also, how can I "clear" the page afterwards so just
the result is shown?