Just do a putenv() from PHP?

On Fri, 31 Aug 2001, Liam Hoekenga wrote:

> we're trying to get a krb4 c-client working with php built as an apache
> server module (either dso or static).
>
> we've hit a wall in that, c-client itself seems to have access to the
> environment in which apache was started, but not the apache environment.
>
> ie... we threw this into c-client:
>
> {
>     extern char **environ;
>
>     int    i;
>
>     for ( i = 0; environ[ i ] != NULL; i++ ) {
>         fprintf( stderr, "%s\n", environ[ i ] );
>     }
> }
>
> and the environment that c-client itself can see is:
> [Fri Aug 31 00:22:19 2001] [info] Server built: Aug 30 2001 12:11:45
> APACHE=/usr/local/httpsd/bin/httpsd
> AWK=/usr/bin/awk
> GREP=/usr/bin/grep
> HOME=/
> KRBTKFILE=/ticket/p1090525904
> PIDFILE=/usr/local/httpsd/log/httpd.pid
> PS=/usr/bin/ps
> PWD=/
> USER=nobody
>
> ie - the same stuff phpinfo() lists under HTTP_ENV_VARS.  We really need
> access to the HTTP_SERVER_VARS (we're revising the krb4 imap patches for
> c-client, *really* need access to REMOTE_USER from within c-client
> itself).
>
> does anyone have suggestions?
>
> Liam
>
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to