|
Posted by Joe on 10/02/05 05:40
"Geoff Berrow" <blthecat@ckdog.co.uk> wrote in message
news:4n8uj15dfdnuoqp7rrea3jggkpuv8jpr79@4ax.com...
>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
Hi Geoff,
That's exactly what I'm looking for! I'm still challenged though because
with your code I can't view the source of the page I need which after
testing I determined it must be because it's a secured page. Instead it
shows the html of my 'redirect if fail' page...
BUT, it works great for my public pages and is a welcome addition to my
snippets. :)
Is there any tweak you can suggest to get this to work on secured pages?
thanks
Navigation:
[Reply to this message]
|