I want to be able to validate a form to check if a website/webpage exists. If it returns a 404 error then that definitely shouldn\'t validate. If there is a redirect...I\'m
I've just written a simpler version using PHP:
function url_check($url) { $x = @fopen($url,"r"); if ($x) { $reply = 1; fclose($x); } else { $reply = 0; } return $reply; }
Obviously $url is the test URL, returns true (1) or false (0) depending on URL existence.
$url