note 16296 added to function.fopen
| From: | php at themastermind1 dot com | Date: | Wed, 24 Oct 2001 02:37:34 +0000 |
| Subject: | note 16296 added to function.fopen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-19357@lists.php.net to get a copy of this message | ||
I have found that I can do fopen("COM1:", "r+"); to open the comport in windows.
You have to make sure the comport isn't already open or you will get a permission denied.
I am still playing around with this but you have to somehow flush what you send to the comport if
you are trying to communicate realtime with a device.
--
http://www.php.net/manual/en/function.fopen.php
http://master.php.net/manage/user-notes.php?action=edit+16296
http://master.php.net/manage/user-notes.php?action=delete+16296
http://master.php.net/manage/user-notes.php?action=reject+16296