Search found 1 match
- Fri Mar 09, 2007 2:46 am
- Forum: PHP - Code
- Topic: PHP binary files
- Replies: 2
- Views: 417
PHP binary files
Hi, I need to send binary data to a server, to which I connect with fsockopen(). I need to send for example 1 byte with value 66 (0x42) and I use fwrite() and pack() functions: $message_type = pack("v", 66); fwrite($connection, $message_type, 1); But I don't know which option of pack() I s...