Re: [PHP] fopen failed to open pipe file in Linux+Apache environment

2006-12-08 Thread mike xu
On 12/8/06, mike xu <[EMAIL PROTECTED]> wrote: Hi Ryan, I just did another test, if I start the httpd by root user manually (the httpd daemon program still owns apache user by the result of `ps -aux`), the php script works fine. So, it seems the httpd start script (/etc/rc.d/init.d

Re: [PHP] fopen failed to open pipe file in Linux+Apache environment

2006-12-08 Thread mike xu
problem... I'll continue checking it ... Thanks, Mike On 12/8/06, Ryan Creaser <[EMAIL PROTECTED]> wrote: mike xu wrote: > Thanks a lot forr your reply. > > Here is the error msg: > *Warning*: fopen(/dev/pmsg) > [function.fopen<http://localhost/Source/test/function.fop

Re: [PHP] fopen failed to open pipe file in Linux+Apache environment

2006-12-07 Thread mike xu
ove pmsg to /tmp/ directory and change its own to appache... * On 12/8/06, Ryan Creaser <[EMAIL PROTECTED]> wrote: mike xu wrote: > Hi, I have problem of open named pipe file in linux. > > Here is my sample code: > > $fifo_file = "/dev/pmsg"; > @ $fp = fopen($fif

[PHP] fopen failed to open pipe file in Linux+Apache environment

2006-12-07 Thread mike xu
Hi, I have problem of open named pipe file in linux. Here is my sample code: $fifo_file = "/dev/pmsg"; @ $fp = fopen($fifo_file, 'w+b'); if(!$fp) { echo "open ".$fifo_file." failed"; } else { $msg_cmd = "ttt"; fwrite($fp, $msg_cmd, strlen($msg_cmd)); fclose($fp); } There i