Professional Web Applications Themes

Parsing Html - PHP Development

Anyone have any ideas how to p a html doent. I am trying to extract out specific information from the page. Also, what do you do if the page is dynamic (e.g. a cgi generated page) how do you find it?? Thanks Colum....

  1. #1

    Default Parsing Html

    Anyone have any ideas how to p a html doent.

    I am trying to extract out specific information from the page.
    Also, what do you do if the page is dynamic (e.g. a cgi generated page) how
    do you find it??

    Thanks
    Colum.


    Colum Guest

  2. #2

    Default Re: Parsing Html

    Colum wrote:
    > I am trying to extract out specific information from the page.
    > Also, what do you do if the page is dynamic (e.g. a cgi generated page) how
    > do you find it??
    It depends *very*much* on what you're trying to extract.
    I once had my motd come from

    <?php
    $x = `curl -s http://www.care2.com/`;
    $t = strpos($x, 'DAILY QUACK UP');
    $y = substr($x, $t, 300);
    $t = strpos($y, '</td>');
    $z = substr($y, 0, $t);
    $z = str_replace('</b></font></a><br>', '', $z);
    $z = str_replace('<BR>', '', $z);
    echo $z;
    ?>

    Just retested this ... still works :)

    --
    I have a spam filter working.
    To mail me include "urkxvq" (with or without the quotes)
    in the subject line, or your mail will be ruthlessly discarded.
    Pedro Guest

  3. #3

    Default Re: Parsing Html

    Hello,

    On 10/30/2003 07:46 PM, Colum wrote:
    > Anyone have any ideas how to p a html doent.
    >
    > I am trying to extract out specific information from the page.
    > Also, what do you do if the page is dynamic (e.g. a cgi generated page) how
    > do you find it??
    You may want to try these classes:

    Class: HTMLpr
    [url]http://www.phpclasses.org/browse.html/package/244.html[/url]

    Class: HTMLSax
    [url]http://www.phpclasses.org/htmlsax[/url]


    --

    Regards,
    Manuel Lemos

    Free ready to use OOP components written in PHP
    [url]http://www.phpclasses.org/[/url]

    Manuel Lemos Guest

Similar Threads

  1. Html parsing
    By j in forum Macromedia Director Lingo
    Replies: 6
    Last Post: April 18th, 01:29 PM
  2. Including / Parsing CF in HTML
    By RazorX in forum Coldfusion - Getting Started
    Replies: 4
    Last Post: March 1st, 01:24 PM
  3. nested HTML parsing
    By Brian McCauley in forum PERL Miscellaneous
    Replies: 4
    Last Post: August 8th, 03:27 PM
  4. HTML File Parsing
    By Raja Balaji R in forum ASP.NET General
    Replies: 1
    Last Post: August 3rd, 05:21 PM
  5. HTML / text parsing - best module(s) to use?
    By Unknown Poster in forum PERL Miscellaneous
    Replies: 1
    Last Post: July 29th, 11:41 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139