15 Mar
2005
15 Mar
'05
1:34 p.m.
Hello, I know that this may be a little off topic, but I know most people here deal with php most of the time. I need to write a little test suite, and the only thing that is stopping this from being easy is that I need to know how to write a raw integer (4 binary chars) into a socket. I can do this with c, it is just... int c; write(sockfd, c, sizeof(int)); So what would this be in php. I was wondering if someone can shed some light on it. Thanks in advance. -- Gordon Heydon <gordon@heydon.com.au>