protected function checkLink($uri, $link) { $link = spider::absolutePath($link, $uri); if ($contents = @file_get_contents($link)) { // All ok. } else { echo "{$uri} => {$link} is a broken link!<br>"; } }