proc_open

PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8
proc_open - Execute a command and open file pointers for input/output
Manual
Code Examples

Example #1 A proc_open example

Result: Array ( [some_option] => aeiou [PWD] => /tmp [SHLVL] => 1 [_] => /usr/local/bin/php ) command returned 0
PHP Version:

Example #2 proc_open quirk on Windows

Result: 'findstr" "search" "filename.txt' is not recognized as an internal or external command, operable program or batch file.
PHP Version:


Function proc_open:

System program execution Functions

Most used PHP functions