note 95845 rejected from function.fopen by danbrown

From: Date: Mon, 25 Jan 2010 18:17:05 +0000
Subject: note 95845 rejected from function.fopen by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-165284@lists.php.net to get a copy of this message
Note Submitter: kerroy at gmail dot com ---- 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?

« previous php.notes (#165284) next »