Re: read a web page and then display



On 30 Aug 2005 12:53:06 -0700, petermichaux@xxxxxxxxx wrote:

>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.

In what way is it not working? What does it do?

>$handle = fopen("http://www.yahoo.com/";, "r");
>
>$contents = fread($handle, filesize($filename));

What's in $filename?

--
Andy Hassall :: andy@xxxxxxxxxxx :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
.



Relevant Pages

  • 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)