Re: check http link



oh, i am looking for something a bit more sophisticated than:

$link = "http://sucks.com/my.zip";;

echo "Checking: $link<br><br>\n"; flush();

$fp = @fopen($link, "r");
if (!$fp) { echo "The link is dead!"; }
else { fclose($fp); echo "The link is working!"; }

but this is a good idea, too

.