View Single Post
Old August 23rd, 2008, 4:02 AM   #1 (permalink)
Gamer.Saga
php, wha?!
Comfy Contributor
 
Gamer.Saga's Avatar
 
Joined in Feb 2008
163 posts
Gave thanks: 4
Thanked 5 times
Send a message via AIM to Gamer.Saga
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.
__________________
HD.C | MyTwitter
I am addicted to LINUX.
Gamer.Saga is offline   Reply With Quote