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:
Expand|Select|Wrap|Line Numbers
- $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