Code
Result

PHP code example: proc_open

Execute a command and open file pointers for input/output . See documentation.

You can try this function yourself. Just edit the code and on "Run" to see the result.