note 95845 added to function.fopen
| From: | kerroy at gmail dot com | Date: | Mon, 25 Jan 2010 18:14:28 +0000 |
| Subject: | note 95845 added to function.fopen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-165283@lists.php.net to get a copy of this message | ||
Hello,
I tried to use this example:
mode com1: BAUD=9600 PARITY=N data=8 stop=1 xon=off;
$fp = fopen ("COM1:", "w+");
if (!$fp) {
echo "Uh-oh. Port not opened.";
} else {
$string = '1234567890'; //or any other string
fputs ($fp, $string );
fclose ($fp);
}
to write to a port or read from a port but I get error: 'unable to bind...' or
'connection fail. the connection was not respoding in time...'. What do I do wrong?
----
Server IP: 69.147.83.197
Probable Submitter: 85.250.225.224
----
Manual Page -- http://www.php.net/manual/en/function.fopen.php
Edit -- https://master.php.net/note/edit/95845
Del: integrated -- https://master.php.net/note/delete/95845/integrated
Del: useless -- https://master.php.net/note/delete/95845/useless
Del: bad code -- https://master.php.net/note/delete/95845/bad+code
Del: spam -- https://master.php.net/note/delete/95845/spam
Del: non-english -- https://master.php.net/note/delete/95845/non-english
Del: in docs -- https://master.php.net/note/delete/95845/in+docs
Del: other reasons-- https://master.php.net/note/delete/95845
Reject -- https://master.php.net/note/reject/95845
Search -- https://master.php.net/manage/user-notes.php