Do you have a question? Post it now! No Registration Necessary. Now with pictures!
July 1, 2009, 1:47 pm
rate this thread
So I need to pull out the navigation blocks and page display blocks.
Each page has navigation found in one regularly occurring
table and page content found in another regularly
occurring table. So it shouldn't be too hard.
With perl I can (short example only) pull the content,
which always appears in the third table on a page,
$file = shift;
$tree = HTML::TreeBuilder->new;
@tables = $tree->find('table');
Is there a pear package or some such that provides the same
convenience in PHP? Or will I have to roll my own block element
puller from scratch?