Currently I am using fsockopen on my IP and a port and when sending a UDP
request it always says it's open. Now, what I'm trying to do is see if I
have an application running on there. This application listens to the port
I'm trying to hit.
Is there a way with fsockopen I can do this? Instead of hitting and saying
open all the time I can return some value? The listening application in a
compiled exe, not a PHP or any kind of application I can add code to send
information with...
Code I am using currently:
<?
$fp = fsockopen("udp://IP", 5121, $errno, $errstr);
if (!$fp) {
echo "ERROR: $errno - $errstr<br>\n";
} else {
echo("Server up!");
echo("<BR>Handle: ".$fp);
}
?>
Jeff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php