Hello Hello!
I'm trying to connect to a host that accepts UDP on a port I setup and tested from a command line too called udp_write. However a PHP fsocketopen() call doesn't work nor does it give an error.
stripped down code + fake data:
var_dump() of $fp says its a socket resource and print($test) gives me an integer < 100. (ie. 12)
Do you see an issue with this code? I can connect from this host to the target host from the command line with this UDP port.
Let me know if I'm missing something,
Cheers,
Dan
I'm trying to connect to a host that accepts UDP on a port I setup and tested from a command line too called udp_write. However a PHP fsocketopen() call doesn't work nor does it give an error.
stripped down code + fake data:
Code:
$fp = fsockopen("udp://999.999.999.999",9999,$errNo,$errMsg) or die("$errNo : $errMsg");
$test = fwrite($fp, "Logging Test");
print($test);
Do you see an issue with this code? I can connect from this host to the target host from the command line with this UDP port.
Let me know if I'm missing something,
Cheers,
Dan
Comment