Re: [PHP] passthru environment variables

2001-02-13 Thread Rich Puchalsky
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

Re: [PHP] passthru environment variables

2001-02-12 Thread Rich Puchalsky
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

RE: [PHP] passthru environment variables

2001-02-12 Thread Tim Ward
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

Re: [PHP] passthru environment variables

2001-02-11 Thread Rich Puchalsky
"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

Re: [PHP] passthru environment variables

2001-02-11 Thread Rich Puchalsky
"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? --

Re: [PHP] passthru environment variables

2001-02-11 Thread Richard Lynch
> 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