Get links with XPath - PHP in Action

Courtesy Planet PHP  Mon, 10/06/2008 - 14:53

There's a tutorial that appeared recently called Get Links With DOM .

Planet PHP lists the author as Kevin Waterson, although his name is not mentioned on the page itself. Anyway, he claims:

Perhaps the biggest mistake people make when trying to get URLs or link text from a web page is trying to do it using regular expressions.

The job can be done with regular expressions, however, there is a high overhead in having preg loop...


 

More related items

Regular expressions are like broccoli… - Michael...
This was the analogy I came up with when teaching a PHP class recently.  I needed to review the topic of regular expressions, but it’s one that neither I nor the students seemed to have...

Scraping websites with Zend_Dom_Query - Raphael Stolt
Today I stumbled upon an interesting and reportable scenario were I had to extract information of the weekly published Drum and Bass charts provided by BBC 1Xtra. As this information...

PHPPro.org: SQL Intro, Reciprocal Links & Finding...
Kevin Waterson has added three new tutorials to his PHPPro.org website recently: Introduction To SQL - The language used in relational databases is SQL. Regardless of the database used, a...

Ultimate Guide to Google AdWords (Ultimate Guide to...
Never before in the history of advertising has it been possible to spend five bucks, write a couple of ads and get instant access to more than 100 million people in 10 minutes. But that's...

SanDisk SDMSG-4096-A11 4GB Memory Stick PRO Duo for...
The SanDisk Gaming Memory Card line turns a handheld game device into a fully loaded multimedia entertainment unit. With SanDisk, you will be able to save your game levels, listen to digital...


 

Post new comment

The content of this field is kept private and will not be shown publicly.
computer-internet.marc8.com