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 23 - Check Links

The two previous plug-ins provide the foundation for being able to crawl the Internet by:

  1. Reading in a third party web page
  2. Extracting all URLs from the page
  3. Converting all the URLs to absolute
Armed with these abilities it's now a simple matter for this plug-in to offer the facility to check all links on a web page and test whether the pages they refer to actually load or not; a great way to alleviate the frustration of your users upon encountering dead links or mistyped URLs.

The Figure shows links on a website being checked.