I'm not sure why you are looking for the first <HEAD> tag... are there lines before the <HEAD> tag that you are wanting to exclude? If so, you might want to use eregi() unless you know for a fact that the <HEAD> tag is all caps...
Other than that I don't really see a problem... you might want to try this instead though:
############
$page = file ("
http://website.com"

;
for ($i = 0; $i < count($page); $i++) {
print "$page[$i]";
}
############
The file() function returns the file/web page in an array, then we walk through the array. Better yet, let's reduce this to one line:
############
print (join (file ("
http://website.com"

, ""

);
############
This fetches the page into an array, joins it with "" (because the newlines are still attached), and prints it out.
I still am not sure why your code above doesn't work though - it looks pretty much normal to me - maybe try it without sending a HOST header? (I've never used the HOST header - I just send the GET and it works for me)...
Hope this helps.
------------------
Justin Nelson
FutureQuest Support