RE: [PHP-WIN] covert binary data with php

2005-05-12 Thread Wu, Jin Yong
-Original Message- From: Burkhard Herre [mailto:[EMAIL PROTECTED] Sent: Thursday, May 12, 2005 4:58 PM To: php-windows@lists.php.net Subject: [PHP-WIN] covert binary data with php hello i have a problem with reading binary data from a file. i read byte by byte with fread... now i want to

[PHP-WIN] covert binary data with php

2005-05-12 Thread Burkhard Herre
hello i have a problem with reading binary data from a file. i read byte by byte with fread... now i want to convert the 1. byte in an ascii sign. and the next step is to read 2 bytes and convert the 2 bytes input into 1 sign in ascii...(16 bit) and so on. but php convert always 1 byte to 1 sign.