Re: [PHP] Mixed PHP/SSI and environment variables

2005-10-29 Thread Richard Lynch
On Thu, October 27, 2005 3:43 am, Christoph Freundl wrote: I have a problem with the persistence of environment variables when mixing PHP and SSI (Apache) and I am not sure if I just made an error or if this approach cannot work at all. So please consider the following files: I *believe* that

Re: [PHP] Mixed PHP/SSI and environment variables

2005-10-29 Thread Richard Lynch
On Fri, October 28, 2005 9:36 am, Christoph Freundl wrote: Perhaps I return to what I primarily intended to ask: is it really the wanted behaviour of virtual() that changes that are made by the included file do not influence the environment of the including file? That is most definitely a

[PHP] Mixed PHP/SSI and environment variables

2005-10-28 Thread Christoph Freundl
Hello, I have a problem with the persistence of environment variables when mixing PHP and SSI (Apache) and I am not sure if I just made an error or if this approach cannot work at all. So please consider the following files: setvar.shtml -

Re: [PHP] Mixed PHP/SSI and environment variables

2005-10-28 Thread Jochem Maas
Christoph Freundl wrote: Hello, I have a problem with the persistence of environment variables when mixing PHP and SSI (Apache) and I am not sure if I just made an error or if this approach cannot work at all. So please consider the following files: setvar.shtml

Re: [PHP] Mixed PHP/SSI and environment variables

2005-10-28 Thread Christoph Freundl
Am Freitag, 28. Oktober 2005 13:22 schrieb Jochem Maas: info.php - ?php virtual( setvar.shtml ); have yuou tried include/require here instead of virtual() I imagine that the env of the subprocess wouldn't affect the env of the parent

Re: [PHP] Mixed PHP/SSI and environment variables

2005-10-28 Thread Jochem Maas
Christoph Freundl wrote: Am Freitag, 28. Oktober 2005 13:22 schrieb Jochem Maas: info.php - ?php virtual( setvar.shtml ); have yuou tried include/require here instead of virtual() I imagine that the env of the subprocess wouldn't affect the

Re: [PHP] Mixed PHP/SSI and environment variables

2005-10-28 Thread Christoph Freundl
Am Freitag, 28. Oktober 2005 13:42 schrieb Jochem Maas: ok, and if you stick the following in 1 file and call it?: !--#set var=myvar value=myval -- ?php echo apache_getenv( myvar ); ? ... just thinking out loud here. Ok, I tried this by configuring Apache such that .php-files are also

Re: [PHP] Mixed PHP/SSI and environment variables

2005-10-28 Thread Jochem Maas
Christoph Freundl wrote: Am Freitag, 28. Oktober 2005 13:42 schrieb Jochem Maas: ok, and if you stick the following in 1 file and call it?: !--#set var=myvar value=myval -- ?php echo apache_getenv( myvar ); ? ... just thinking out loud here. I just looked at apache_getenv(): string