Re: [PHP-PEAR] libwww for PHP
[email protected] (Manuel Lemos) Sun, 11 Mar 2001 01:44:24 -0300
| Newsgroups | php.pear |
|---|---|
| Message-ID | <[email protected]> |
Sterling Hughes wrote: > > On Tue, 13 Mar 2001, Manuel Lemos wrote: > Hello, > > Hello, > > > > Mike wrote: > > > > > > I'm writing a PHP version of libwww, but before I go much further I want to make sure there isn't an existing version of the same thing. Anyone doing anything? > > > > I suggest that you just add a C extension to W3C libwww like there is > > for Perl. One of the things that W3C does and PHP lacks badly is HTML > > parsing. It is silly to try doing HTML parsing in pure PHP because it is > > too much CPU consuming. > > > > libwww may be found here: http://www.w3.org/Library/ > > > > Manuel Lemos > > > > For HTML parsing, can't you just use Expat? I'm afraid not. Most people do not write XML compliant HTML. For parsing HTML it needs to be something in C like Expat to be as fast as possible. W3 libwww comes with a nice HTML parser similar to Expat but for arbitrary HTML. Manuel Lemos