You are here: Re: "Show Source" button « All PHP « IT news, forums, messages
Re: "Show Source" button

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация