read a web page and then display



Hi,

I'd like to read a webpage, the parse it and display a small part of
it. Here is what I've tired. It isn't working. Any suggestions?

Thanks,
Peter



<?php

$handle = fopen("http://www.yahoo.com/";, "r");

$contents = fread($handle, filesize($filename));

echo $contents;

?>

.



Relevant Pages

  • Re: read a web page and then display
    ... >I'd like to read a webpage, the parse it and display a small part of ... Prev by Date: ...
    (comp.lang.php)
  • Re: parsing an xml response feed in firefox
    ... I am trying to parse a feed from blogger.com ... and display the contents in my webpage. ... Why not just use load with the blogger.com URL that you want to load? ...
    (microsoft.public.scripting.jscript)
  • Re: Read webpage with VB app
    ... >> Is there a simple way to read (and parse) a webpage with a VB.net ... Right now I can sort of read a page but it's a framed page ... > It sounds like you just want to transfer it, and not display it? ...
    (microsoft.public.dotnet.languages.vb)
  • Re: XMLHttpRequest running a ASP.net Script
    ... It returns the whole asp.net webpage (isn't a problem really because i ... just parse out what i need, ... Again, thanks a lot Donius ... Prev by Date: ...
    (comp.lang.javascript)
  • Date problem
    ... I am a beginner in programming. ... How can I display the system date - 5 ... December 2005 in my webpage. ... Prev by Date: ...
    (comp.lang.javascript)