|
proc_open.... trying to execute a php file like an include()
The scenario is, I want to make proc_open() work like include().... I need to have access to all the variables like $_GET, $_POST, $_SERVER, $_REQUEST, $HTTP_SERVER_VARS, and what not. I don't want it to have any call back to the functions that I'm executing it from, I know that's an unlikely scenario to happen. I can't find any information on how apache does it.... at all... I think I might have to use "php -a" to make it happen, but I don't want to really do that.. Any help with this would be great.... Btw, before someone suggests using some other function, the reason I need to use proc_open(), is because I'm trying to emulate multi-threading.
Thanks in advanced.
|