Re: libwww for PHP

From: Date: Sun, 11 Mar 2001 04:44:24 +0000
Subject: Re: libwww for PHP
References: 1 2 3  Groups: php.pear 
Request: Send a blank email to php-pear+get-1829@lists.php.net to get a copy of this message
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

« previous php.pear (#1829) next »