note 95445 modified in function.dio-read by thiago

From: Date: Mon, 04 Jan 2010 13:16:46 +0000
Subject: note 95445 modified in function.dio-read by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-164600@lists.php.net to get a copy of this message
I am using dio functions on windows to read RS232 port. I can read/write but it seems that the write function cannot be binary. In particular: <?php dio_write($com1,chr(10),1); ?> Will result in writing 2 bytes 0D 0A be cause \n is translated to \r\n. I have not found any way to overcome this limitation so far --was-- I am using dio functions on windows to read RS232 port. I can read/write but it seems that the write function cannot be binary. In particular: dio_write($com1,chr(10),1); will result in writing 2 bytes 0D 0A be cause \n is translated to \r\n. I have not found any way to overcome this limitation so far http://php.net/manual/en/function.dio-read.php

« previous php.notes (#164600) next »