A McGraw Hill Book Plug-in PHP: 100 Power Solutions
By Robin Nixon (McGraw Hill 2010, ISBN 978-0071666596)

Home | About | Buy It | Download | Contact

Select Chapter: 1  2  3  4  5  6  7  8  9 10 11 12

Chapter 5: Plug-in 22 - Get Links From URL

When you first need to extract HTML links from a web page (even your own) it looks almost impossible and seems quite a daunting task. And it's true, parsing HTML is quite complex. But with this plug-in all you need to do is pass it the URL of a web page and all the links found within it will be returned.

The Figure shows links being extracted from a web page.