Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- how send messages between two proceses?
January 27, 2007, 8:50 am
rate this thread
Re: how send messages between two proceses?
If you are actually forking (as opposed to exec'ing a new process), then
forked processes share filehandles with their parent, so that's one way to
communicate between them. Other methods may include:
Simple command line parameters? http://php.net/system
Pass data via stdin/stdout? http://php.net/proc_open
Sockets? (UNIX, TCP, etc.) http://php.net/sockets
Or see http://en.wikipedia.org/wiki/Inter-process_communication for more.
Andy Hassall :: firstname.lastname@example.org :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool