note 21462 added to index

From: Date: Tue, 14 May 2002 06:03:18 +0000
Subject: note 21462 added to index
Groups: php.notes 
Request: Send a blank email to php-notes+get-30616@lists.php.net to get a copy of this message
hi, it is offtopic you can get the serial port from php using this script un de windows or linux linux: <?php $file=fopen("/dev/ttyS0","r"); clearstatcache($file); while(1) { echo fgetc($file)."\n"; } ?> windows <?php $file=fopen("COM1","r"); clearstatcache($file); while(1) { echo fgetc($file)."\n"; } ?> this script read the serial port 1, COM1 under windows and ttyS0 under linux -- http://www.php.net/manual/en/index.php http://master.php.net/manage/user-notes.php?action=edit+21462 http://master.php.net/manage/user-notes.php?action=delete+21462 http://master.php.net/manage/user-notes.php?action=reject+21462

« previous php.notes (#30616) next »