System_Daemon and shell_exec

Posted by Jesse on Stack Overflow See other posts from Stack Overflow or by Jesse
Published on 2010-04-09T07:40:24Z Indexed on 2010/04/09 7:43 UTC
Read the original article Hit count: 254

Filed under:
|
|
|
|

Hey Everyone,

I've set up a daemon (daemon.php) using PEAR's System_Daemon which waits for something to appear in the database. Once something is there, the daemon gets enough information and sends it out to another script (execute.php) using the shell_exec command this way I'm not worried about waiting for a response and holding up the daemon.

Both of the scripts work fine alone and I'm even able to call shell_exec before calling System_Daemon::start(); . However, if I trying calling it AFTER System_Daemon::start();, then I get an Access Denied only when outputting to a file.

I'm still new to Daemons in general, so any ideas or thoughts would be great!

Thanks Guys!

© Stack Overflow or respective owner

Related posts about php

Related posts about pear