As an extension of the question " php execute background process ":
Suppose I wanted to keep a process running during a PHP session as an interactive shell bash. How to set the stdout / stdin redirection so that PHP can read / write to the process?
UPDATE: the key should be to start this process and save it in the background so that subsequent requests can access its stdout / stdin threads.
source
share