Hi,
I need to send to a socketthe number 11 in 2 bytes 0000000000001011 or 0000101100000000
how do I send it ?.
If I'll use - fputs($fp,"0000000000001011");
it'll send 16 bytes and I need only 2
Thanks,
Achi.
Try fputs ($fp, chr(0) . chr(11))