[PHP] Help with pack unpack functions

2005-01-03 Thread Scott E. Young
Hello All, I am trying to write some PHP code that will act as a client to a homegrown server interface developed in C. The client/server interfaces exchange data using two C structures defined as: /* struct for client requests to server */ struct client_request { char stringA[20];

Re: [PHP] Help with pack unpack functions

2005-01-03 Thread Richard Lynch
What is strange is that I can always get the char data[] structure member, and sometimes I get meaningful data in a few of the shorts, but never all of the structure's members at the same time. Do you consistently get the same problems on the FIRST record returned? Anything after that is

Re: [PHP] Help with pack unpack functions

2005-01-03 Thread Scott E. Young
First, let me say thanks for responding. My other responses are embedded within your reply: What is strange is that I can always get the char data[] structure member, and sometimes I get meaningful data in a few of the shorts, but never all of the structure's members at the same time. Do