[PHP] binary data over UDP with PHP?

2004-07-07 Thread coder_1024
I'm trying to send some binary data to a UDP server using PHP. The examples I've been able to find show sending binary data over TCP, or they show sending text over UDP. I'm constructing the messages using the below: $text_msg = "Hello, World\r\n"; $binary_msg = chr(0x01).chr(0x02).chr(0x00)

Re: [PHP] binary data over UDP with PHP?

2004-07-07 Thread coder_1024
xdec('FF')).chr(hexdec('01')).chr(hexdec('00')); > fwrite($fp,$trigger); # Send trigger to the > status server > $junk = fread($fp, 4); # discard echoed command > from status server > } > > Keith > >