As an extension to question "php execute a background process":
Suppose I wanted to keep a process running during a PHP session, like an interactive bash
shell. How can I establish redirection of stdout/stdin such that PHP can read/write to the process?
UPDATE: The key is to be able to kick off the process and keep it running in the background so that later requests can access its stdout/stdin streams.