Ok this is just getting annoying, I rang the web host that runs the server that I'm trying to connect to with the script, and they said they had no security settings which would stop such a request. So what the hell is it? this script works with every other address I've used.
<?php
function isURL($Value) {
$parsed = parse_url($Value);
if($parsed['scheme'] != 'http' || $parsed['host'] == '') {
$parsed['scheme'] = 'http';
$parsed['host'] = BASEURL;
}
elseif(!checkdnsrr($parsed['host'],'A')) {return 0;}
$fp = fsockopen ($parsed['host'], 80);
fputs($fp,"GET $Value HTTP/1.0\n\n");
$line = fgets($fp, 1024);
if (stristr($line, '200 OK')) {$end = 1;}
else{$end = 0;}
fclose($fp);
return $end;
} //end isURL
if (isURL("http://www.moriacps.vic.edu.au/home/jorgiaa/index.html")==1)
{
echo "YEP!";
}else{
echo "NOPE!";
}
?>
check the URL, it's perfectly legit,
could it have something to do with the fact that the domain name is .vic.edu.au and not your standard .com or .com.au? <-----Scratch that I tried another vic.edu.au URL and it worked.