PDA

View Full Version : link testing


halfblind
08-28-2002, 04:37 PM
does anybody know of any scripts that will allow me to check to see if specific sites are up. If they are follow that link , if not go to another link.

torrent
08-28-2002, 05:33 PM
Do you have access to any server side languages (asp, coldfusion, php, perl)?

halfblind
08-29-2002, 10:33 AM
yes, perl and php

torrent
08-29-2002, 09:58 PM
<?
$goodLink = "www.ski-info-online.com";
$badLink = "www.aszxcx.com";


if (fsockopen($badLink, 80, $errno, $errstr, 10)) {
print "Good Link";
} else {
print "No response from host<br />$errno<br />$errstr";
}
?>

halfblind
08-30-2002, 10:26 AM
thanks, i will give that a try.