I've been trying to make a remote application which would operate by sending Topic messages to the server via sockets, however I've failed at trying to send the correct message. Any help will be appreciated.
Php:
return "\x00\x83" . pack( 'n', strlen( $query_string) + 6 ) . "\x00\x00\x00\x00\x00" . $query_string . "\x00";