Re: [PHP] Reading with C 'struct' data

2001-08-08 Thread Richard Lynch
> struct BACACHE > > char author[300][100]; > int top; > time_t uptime; > time_t touchtime; > int busystate; > }; > > is there any way to get these data into PHP with certain variable type ? > > I've tried to use " unpack() " function, but I found that unpack() can't > unpack a char array ( I mea

[PHP] Reading with C 'struct' data

2001-08-03 Thread CW Huang
I have a file written by C whit a c-style struct like this: struct BACACHE { char author[300][100]; int top; time_t uptime; time_t touchtime; int busystate; }; is there any way to get these data into PHP with certain variable type ? I've tried to use " unpack() " function, but I foun