note 95445 deleted from function.dio-read by danbrown

From: Date: Mon, 04 Jan 2010 16:03:48 +0000
Subject: note 95445 deleted from function.dio-read by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-164614@lists.php.net to get a copy of this message
Note Submitter: ming at mail dot seven dot com dot tw ---- 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

« previous php.notes (#164614) next »