Forum Moderators: coopster
$urlCheck = @fopen($link, 'r');
if($urlCheck == false) {
$error = "SORRY CANNOT FIND LINK!";
}
@fclose($urlCheck);
Thanks in advance...
My script works, but there are some weird issues, such as when the $link is [cnn,...] which is broken,
Are you saying that another broken link such as [thisisabrokenlink.com...] does indeed fail and get caught by your script?
If so, then perhaps you need to do a precheck (with a regexp) to make sure the URL is at least a valid format?