I used env -i with spectacular results. It worked perfectly, with the exception of resetting the environment (so me of which is kind of needed). Next I thought I could just modify the environment like Jeremy said, and I have a small snippet where I use something like: $tmp = getenv("VAR"); putenv("VAR"); shell_exec(...); putenv("VAR=".$tmp);
But with an array to hold all of the saved vars, but I can't seem to find the right environment variables to unset. Can someone give me a list of CGI variables which should be unset to allow PHP to work as a CLI version, but not mess up anything else? Thanks, J.D. Tysko Software Engineer BCS Engineering Jeremy Chadwick wrote: > Try using putenv() in your PHP scripts. Note that to unset an > environment variable, you use putenv("VAR"), not putenv("VAR="). > (Because apparently the PHP folks would rather implement something > bizarre than just use unsetenv(3)). > _______________________________________________ suPHP mailing list suPHP@lists.marsching.biz http://lists.marsching.com/mailman/listinfo/suphp