You are here: RE: [PHP] read from comport: windows vs. linux « PHP « IT news, forums, messages
RE: [PHP] read from comport: windows vs. linux

Posted by Richard Lynch on 04/07/05 07:17

On Tue, April 5, 2005 11:41 pm, Kim Madsen said:
>
>> -----Original Message-----
>> From: Jay Blanchard [mailto:jay.blanchard@niicommunications.com]
>> 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 _no_ difference at all, I´m still
> getting permission denied, when calling fopen :-/
>
> [root@lager dev]# ls -al ttyS*
> crw-rw-rw- 1 apache apache 4, 64 Apr 5 16:01 ttyS0

Just for fun...

On the command line, su to 'apache' and then do cat /dev/ttyS0

Okay, if that works, run your PHP script from the command line, as apache.

If *THAT* works, then I got nothin'

Report it as a bug, I guess. http://bugs.php.net

Though it's possible that the OS requires a shell to exist for you to open
/dev/ttyS0...

*MAYBE* you could try using http://php.net/exec (with "cat /dev/ttyS0")
and see if that allows you any kind of access. Doubt it, though.

--
Like Music?
http://l-i-e.com/artists.htm

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация