RE: [PHP] read from comport: windows vs. linux

2005-04-07 Thread Kim Madsen
-Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday, April 07, 2005 6:18 AM [EMAIL PROTECTED] dev]# ls -al ttyS* crw-rw-rw- 1 apache apache 4, 64 Apr 5 16:01 ttyS0 This is not an acceptable solution anyway, the permissions are changed on a reboot:

RE: [PHP] read from comport: windows vs. linux

2005-04-06 Thread Kim Madsen
-Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 05, 2005 3:42 PM having apache be the groupowner doesn´t change anything You may also need to change the user/owner, depending on what Apache is running as. User and group is apache. It made

Re: [PHP] read from comport: windows vs. linux

2005-04-06 Thread Jason Wong
On Wednesday 06 April 2005 14:41, Kim Madsen wrote: User and group is apache. It made _no_ difference at all, I´m still getting permission denied, when calling fopen :-/ [EMAIL PROTECTED] dev]# ls -al ttyS* crw-rw-rw- 1 apache apache 4, 64 Apr 5 16:01 ttyS0 Well if other has rw then it

RE: [PHP] read from comport: windows vs. linux

2005-04-06 Thread Kim Madsen
-Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 06, 2005 9:36 AM Well if other has rw then it doesn't really matter who owns the file. My point exactly! What does the php error log say? Samething as on the site: Apr 6 10:16:12 lager httpd:

Re: [PHP] read from comport: windows vs. linux

2005-04-06 Thread Burhan Khalid
Kim Madsen wrote: -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 06, 2005 9:36 AM Well if other has rw then it doesn't really matter who owns the file. My point exactly! What does the php error log say? Samething as on the site: Apr 6 10:16:12

RE: [PHP] read from comport: windows vs. linux

2005-04-06 Thread Kim Madsen
-Original Message- From: Burhan Khalid [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 06, 2005 10:43 AM Are you running mod_security? Nops: [EMAIL PROTECTED] ~]# httpd -l Compiled in modules: core.c prefork.c http_core.c And SELinux is now disabled, still no change... :-/

Re: [PHP] read from comport: windows vs. linux

2005-04-06 Thread Jason Wong
On Wednesday 06 April 2005 16:18, Kim Madsen wrote: Are you running SELinux? Jeps, that?s installed, but I have no clue, what that is and do. The server with the problem runs Feodora 3, I?m running RH9 on my own servers. Check the archives, there have been a lot of people having problems

RE: [PHP] read from comport: windows vs. linux

2005-04-06 Thread Richard Lynch
On Tue, April 5, 2005 11:41 pm, Kim Madsen said: -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 05, 2005 3:42 PM having apache be the groupowner doesn´t change anything You may also need to change the user/owner, depending on what Apache is

RE: [PHP] read from comport: windows vs. linux

2005-04-05 Thread Jay Blanchard
[snip] I´ve got a problem porting from windows to Linux, when I wanna read and write to the serial port. This works like a charm in windows: if (!$fp = fopen(COM1, 'w+b')) { echo \nError! Could not open COMport - Got a terminal open?\n; exit; } The program continues, but breaks in