[drupal-devel] OT: Binary data.
Gordon Heydon
gordon at heydon.com.au
Tue Mar 15 12:34:36 UTC 2005
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 at heydon.com.au>
More information about the drupal-devel
mailing list