RE: [PHP] passthru environment variables

From: Date: Mon, 12 Feb 2001 09:02:10 +0000
Subject: RE: [PHP] passthru environment variables
Groups: php.general 
Request: Send a blank email to php-general+get-39184@lists.php.net to get a copy of this message
fpassthru doesn't include the code in your php code. In just dumps the file to output as it runs. Anything defined in PHP (inluding variables and functions) in the file passed through will not be available to the calling program. You need include(); Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -----Original Message----- > From: Rich Puchalsky [mailto:rpuchalsky1@mediaone.net] > Sent: 11 February 2001 05:52 > To: php-general@lists.php.net > Subject: [PHP] passthru environment variables > > > I'm trying to use passthru in a PHP program to have an > external program > display some data. The problem is that I was trying to have > the external > program's environment pick up the form field variables > automatically passed > into the PHP program as shell environment variables. > > In other words, if a user typed "Smith" into the last_name > field in a form, > the PHP program called by that form starts out with > $last_name = "Smith", > and I would like the external program called by passthru > within the PHP > program to have a shell environment variable last_name = "Smith". > > Does anyone know an easy way to do this? > > > > >

« previous php.general (#39184) next »