Re: passthru environment variables

From: Date: Mon, 12 Feb 2001 16:03:00 +0000
Subject: Re: passthru environment variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-39222@lists.php.net to get a copy of this message
Tim Ward <tim.ward@stivesdirect.com> wrote: > fpassthru doesn't include the code in your php code. In just dumps the file > to output as it runs. I was using the command "passthru", which is supposed to pass the *output* of an external program through to standard out. In other words, let's say I wanted people to be able to see how long my system was up, I could have a PHP program display other information and then call the Linux command "uptime" and pass the result to the user's browser. For the application that I'm working on, I need to use "passthru" (or possibly "system") rather than having a line or two of output passed back to the PHP program because the external program I'm using will produce up to hundreds of pages of output. >Anything defined in PHP (inluding variables and > functions) in the file passed through will not be available to the calling > program. I want the variables in the PHP program to be available to the external program through the shell environment of the forked external program.

« previous php.general (#39222) next »