You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modules-dev@httpd.apache.org by Sam Carleton <sc...@miltonstreet.com> on 2007/09/25 13:07:09 UTC

Re: Passing parameters to PHP

On 8/15/07, Brian J. France <li...@firehawksystems.com> wrote:
>
> On Aug 15, 2007, at 3:46 PM, Sam Carleton wrote:
> > Is there any way for my apache module to pass parameters in such a way
> > that my php code can get at them?
>
> Stick the data in r->subprocess_env and PHP can access them via
> $_SERVER (or apache_getenv if $_SERVER is disabled).

I finally got around to using this useful piece of info last night and
it worked like a charm!  I do have a question though, once it is set,
does it stay for the life of Apache or just for that request?

Sam

Re: Passing parameters to PHP

Posted by Issac Goldstand <ma...@beamartyr.net>.
Just for the request.

  Issac

Sam Carleton wrote:
> On 8/15/07, Brian J. France <li...@firehawksystems.com> wrote:
>   
>> On Aug 15, 2007, at 3:46 PM, Sam Carleton wrote:
>>     
>>> Is there any way for my apache module to pass parameters in such a way
>>> that my php code can get at them?
>>>       
>> Stick the data in r->subprocess_env and PHP can access them via
>> $_SERVER (or apache_getenv if $_SERVER is disabled).
>>     
>
> I finally got around to using this useful piece of info last night and
> it worked like a charm!  I do have a question though, once it is set,
> does it stay for the life of Apache or just for that request?
>
> Sam
>