Yes that works much better, thank you. But I am still having a problem capturing all the data between(and including) the tags.
I.E
<html>
<body>
<?
$handle = fopen("http://www.google.com/index.html",r);
while (!feof($handle)){
$buffer .= fread($handle,2048);
}
$start = strpos($buffer,"<head");
$end = strpos($buffer,"/head>");
$head = substr($buffer, $start, $end);
?>
<br><br>
<INPUT TYPE=text SIZE=150 VALUE="<?php echo $head?>">
</body>
</html>
Will return only this in a text box:
<head><meta http-equiv=
Yet the first line of google's source is:
<head><meta http-equiv="content-type" content="text/html; charset=UTF-