Posted by Geoff Berrow on 10/02/05 03:18
I noticed that Message-ID: <EPE%e.4425$MO2.3442@trndny09> from Joe
contained the following:
>That was the line, you're right.. $output .= htmlentities(fgets($fp, 128));
>But now I just get a blank page. Yes I changed Host to localhost, is that
>correct? I'm sorry I've tried a lot of different things to get it to work
>but I just don't get it.
Seems a long winded way to me. Try this:
<?php
$handle = fopen("http://news.bbc.co.uk", "rb");
$contents = '';
while (!feof($handle)) {
$contents .= fread($handle, 8192);
}
fclose($handle);
print "<pre>".htmlentities($contents)."</pre>";
?>
--
Geoff Berrow 0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011
[Back to original message]
|