note 21462 rejected from index by jimw

From: Date: Tue, 14 May 2002 21:59:45 +0000
Subject: note 21462 rejected from index by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-30646@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

« previous php.notes (#30646) next »