Re: [PHP] To pack(), or not to pack()

2004-05-10 Thread Curt Zirzow
* Thus wrote Ren Fournier ([EMAIL PROTECTED]): > Hi, > > I'm developing a PHP program that must send data, over a socket > connection, to a server. The server requires the data in a particular > format, e.g.: > > FORMAT: > 3-byte delimiter - Message Length (N = 4 bytes) - Message Type (4 > byt

[PHP] To pack(), or not to pack()

2004-05-10 Thread René Fournier
Hi, I'm developing a PHP program that must send data, over a socket connection, to a server. The server requires the data in a particular format, e.g.: FORMAT: 3-byte delimiter - Message Length (N = 4 bytes) - Message Type (4 bytes) - Message Body (N - 4 bytes) - 3-byte Delimiter SAMPLE MESSA