Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- htons & ntohs PHP Equivalent Functions
October 10, 2005, 4:58 pm
rate this thread
Re: htons & ntohs PHP Equivalent Functions
I've never used function like that before, but I believe that you may be
able to do it with the pack() function using the correct format. IIRC,
network byte order is big endian, so you;d want to look at n for 16 bit
unsigned short and N for 32-bit unsigned long.
Justin Koivisto, ZCE - firstname.lastname@example.org