PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
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.