binary value in one string byte
Posted: Fri Mar 04, 2005 1:11 pm
I am working on some socket communications using PHP, and am having a small problem. The server is requiring the packet size be listed in binary using the first four bytes.
I don't know what I'm doing wrong but I can't seem to store a binary number in these four bytes.
Does anyone have any suggestions?
I don't know what I'm doing wrong but I can't seem to store a binary number in these four bytes.
Does anyone have any suggestions?