--------copy the contents below and rename it as index.php----------> include "../header.html" ?>
Link Checker
PHP link checker to help get rid of any dead links on your web pages.
include "../footer.html" ?>
==============================================================================
<--------copy the contents below and rename it as linkchecker.php---------->
".$_GET['url']." ...
\n";
@ob_flush();
flush();
// Check it
$html = geteverything ( $_GET['url'] );
if(!$html)
{
print "Sorry that link appears not to exist.
\n";
}
else
{
// Get status code
$done = getstatuscode( $html );
// Print results
print "". $done."
\n";
// Get urls from main page
$urls = GetUniqueUrls( $html, $_GET['url'] );
for($i=0;isset($urls[$i]);$i++)
{
// Print the link were checking
print "Checking link: ".$urls[$i]." ...
\n";
@ob_flush();
flush();
// Get everything
$html = gethead($urls[$i]);
// Check it
if(!$html)
{
$done = "Sorry that link appears not to exist.
\n";
}
else
{
// Get status code
$done = getstatuscode( $html );
}
// Show the results
print $done."
\n";
@ob_flush();
flush();
// Sleep so we don't send requests to the same server to fast
sleep(3);
}
}
}
else
{
print "PHP link checker to help get rid of any dead links on your web pages.
\n";
print "To use this free online like checker, Just type in the box below the page\n";
print "uri you want to check then click the \"Check links\" button. Then the link\n";
print "checker will crawl your web page and get the links out of it and check them.\n";
print "It will return a list of links it has checked and tell you the status i.e.\n";
print "404 NOT FOUND, 200 OK, ect.
\n"; } ?>