ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Autofilled PHP Forms
Subject:   HTML parsing
Date:   2006-03-16 19:16:54
From:   mpeters
I'm not a PHP guy, but I know that parsing HTML with regular expressions is asking for problems. Does PHP not have any decent HTML parsers?


In Perl we use HTML::FillInForm, which is much more generic and uses HTML::Parser behind the scenes to handle all the oddities of HTML and do it very fast. It's as easy as:



HTML::FillInForm->new->fill(
file => 'blah.html',
fdat => { email => 'me@test.com' },
);


And with HTML::FillInForm::LibXML being written, it will use the libxml C library to make it blazingly fast.


1 to 1 of 1
  1. HTML parsing
    2006-03-16 19:29:31  GavinAndresen [View]

    • HTML parsing
      2006-06-07 11:52:56  sbrown29 [View]

1 to 1 of 1