This is the chunk of code from the new & improved linkcheck from the downloads. This portion is only executed if the CURL libraries are installed on your server...
| Code: |
if (preg_match ("|<[aA] (.+?)".$our_site."(.+?)>(.+?)<\/[aA]>|i", $body, $rlinks))
{$rlink="<font color=green>Rlink found</font><br>"; $rlink2 = $rlinks['0'];}
else
{$rlink="<font color=red>Rlink not found</font><br>
<b><a target=_blank href=".$rows[RecipURL].">MANUAL</a></b>"; $bad_link = 1;
}
|
It will also be flagged as possibly bad if noindex or nofollow meta tags are found within the head tag of the page with the following snippet ...
| Code: |
if (preg_match($noindex_meta, $header)){++$flag;
$bad_link = 1;$note.="<font color=red>No Index</font><br>";
}
if (preg_match($nofollow_meta, $header)){++$flag;
$bad_link = 1;$note.="<font color=red>No Follow</font><br>";
}
|
Hrm.. I've tested both these regular expressions and they appear to work correctly with or without a trailing slash on the URL... but, clicking the link Book12.htm .. I get a 404, and indeed, a link to you is not there. Possibly they are moving stuff around on their site and your browser is showing you a cached copy ?