Tim Ward <[EMAIL PROTECTED]> 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.



-- 
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