SV: [PHP] Read From COM1 port

2005-03-04 Thread Kim Madsen
From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: 3. march 2005 20:56 >> $fp = fopen("COM1", "rwb"); > You might try this: > $input = fopen("COM1", "rb"); > $output = fopen("COM1", "wb"); > Use $output to write, and $input to read. On a windows one would have to close the connection every tim

Re: [PHP] Read From COM1 port

2005-03-03 Thread Richard Lynch
Kim Madsen wrote: > I'm having trouble reading from COM1, writing works like a charm but I'd > like to be able to read the output from a switch or a router in order to > determine that the command was successful and the configuration actually > went fine :-) > > doing: > > $fp = fopen("COM1", "rwb"

[PHP] Read From COM1 port

2005-03-03 Thread Kim Madsen
Hi I'm having trouble reading from COM1, writing works like a charm but I'd like to be able to read the output from a switch or a router in order to determine that the command was successful and the configuration actually went fine :-) doing: $fp = fopen("COM1", "rwb"); fwrite($fp, $username