[PHP] Use PHP for reading binary files created by C software

2002-11-25 Thread Tim Molendijk
Hi all, I would like to use PHP to read a binary file which contains a structure in C, such as: struct simple { int a; float b; }; with f.e. a = 2 and b = 1.5. Please notice that this is stored as *binary* data and not as text. I know it is possible to read binary files using fgets() in

Re: [PHP] Use PHP for reading binary files created by C software

2002-11-25 Thread Rasmus Lerdorf
php.net/unpack On Sun, 24 Nov 2002, Tim Molendijk wrote: Hi all, I would like to use PHP to read a binary file which contains a structure in C, such as: struct simple { int a; float b; }; with f.e. a = 2 and b = 1.5. Please notice that this is stored as *binary* data and not as