i have the following code as part of my page:-
$fp = fsockopen("udp://$serverip",$port, &$errno, &$errstr,10);
if ($fp) {
echo "connected.";
}
else {
echo "ERROR: $errno - $errstr\n";
}
fclose($fp);
this would work fine except that when i put in a bougs ip or port $fp is always true...