Monday, April 30, 2012

PHP CGI Environment customization

What is the proper way to set the CGI environment for running scripts in PHP? If I would like to run a script and pass in all the CGI ENV variables - it should have only AUTH_TYPE,PATH_INFO etc.



Right now,if I do exec() - it uses the OS ENV variables like PATH,TERM etc. I can't use pcntl_exec(). Appreciate any hints.



Thanks.





No comments:

Post a Comment