Serial problems

Asked by Alil on 2008-09-18

In my job to become "MICROSOFT" free, i have a computer with a termical serial printer.
Ubuntu 8.10 LAMP, and the PHP lines:

`mode COM1: BAUD=19200 PARITY=N data=8 stop=1 xon=off`;

$sp = fopen("COM1", "w+");

gives me the error:

Warning: fopen(COM1) [function.fopen]: failed to open stream: Permission denied in /var/www/a.php

Have tryed every tips on the net.
chmod a+rw /dev/ttyS0 did not work.

HELP......

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu php4 Edit question
Assignee:
No assignee Edit question
Last query:
2008-09-18
Last reply:
2008-09-18

Try:

sudo chmod 777 /dev/ttyS0

Hope this hels

Can you help with this problem?

Provide an answer of your own, or ask Alil for more information if necessary.

To post a message you must log in.