the manpage for proc_open has an example which I believe is doing sort of what you need to do:
PHP: proc_open - Manual
Check example #1. You can put $_GET,$_POST inside $env:
PHP Code:
$env = array('POST' => $_POST, 'GET' => $_GET);
and then call them inside the script you are executing with proc_open, like:
PHP Code:
$_ENV['POST']['some_post_var']
It is a round about way to do it, but i think it should work
