Re: access to the apache environment from the c-client built into PHP 4.0.x

From: Date: Fri, 31 Aug 2001 04:35:47 +0000
Subject: Re: access to the apache environment from the c-client built into PHP 4.0.x
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-65409@lists.php.net to get a copy of this message
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 > > >

« previous php.general (#65409) next »