vincentas — 2013-01-14T02:34:15-05:00 — #1
I'm trying to send the binary representation of data through a PHP socket.
So if the number was 15, socket_write would send 00001111 as binary representation for 15.
How should I do this?
marplo — 2013-01-14T03:42:34-05:00 — #2
You can use the decbin($nr) to convert a number into a binary. Then, send the result.
More about decbin() on this address:
vincentas — 2013-01-14T04:13:31-05:00 — #3
system — 2014-10-07T23:32:03-04:00 — #4
This topic is now closed. New replies are no longer allowed.