OK, I finally found it. Someone else here recommended setenv -- it's
actually putenv. putenv was *not* found through any search I could make on
the PHP Web site involving the word environment and so on, I found it
through Google. And it's apparently documented under "PHP Options and
Information
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
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 Enginee
"Rich Puchalsky" <[EMAIL PROTECTED]> wrote in message
966dad$pkm$[EMAIL PROTECTED]">news:966dad$pkm$[EMAIL PROTECTED]...
> "Richard Lynch" <[EMAIL PROTECTED]> wrote:
> > http://php.net/setenv
>
> Thanks! But when I try this link, or the "Quick Ref" button on the PHP
home
> page, I can't find any
"Richard Lynch" <[EMAIL PROTECTED]> wrote:
> http://php.net/setenv
Thanks! But when I try this link, or the "Quick Ref" button on the PHP home
page, I can't find anything about setenv. And the manual doesn't have
anything about it under Program Execution Functions. Is it undocumented?
--
> 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 wo
6 matches
Mail list logo