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)
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
>
>
2 matches
Mail list logo