[Serusers] reading passed env variables from within php script

Greger V. Teigre greger at teigre.com
Mon Nov 21 20:48:12 CET 2005


$_ENV["VARIABLE_FROM_ENV"] works for exec_dst().
g-)
----- Original Message ----- 
From: "Iqbal" <iqbal at gigo.co.uk>
To: "sip" <sip at arcdiv.com>
Cc: <serusers at lists.iptel.org>; "users openser.org" <users at openser.org>
Sent: Monday, November 21, 2005 4:06 PM
Subject: Re: [Serusers] reading passed env variables from within php script


> php, if anyone has a sample php would love it, if I run it from the 
> command line phpinfo() shows all, but from within ser, I just cant pull 
> the variables used $_ENV, getenv(),
>
> Iqbal
>
> sip wrote:
>
>>I just used $1, etc in a shell script.  What language is this?
>>N.
>>
>>On Mon, 21 Nov 2005 14:22:35 +0000, Iqbal wrote
>>
>>>done that :-),
>>>
>>>Andreas Granig wrote:
>>>
>>>
>>>>Iqbal wrote:
>>>>
>>>>
>>>>>I am trying to read the env variables which are passed in exec_msg, 
>>>>>from
>>>>>within the script, and have tried $_ENV etc from with the script, but
>>>>>all blank, is there and easier/better way of getting the details in the
>>>>>message into a script
>>>>>
>>>>>
>>>>Maybe getenv()?
>>>>
>>>>Andy
>>>>
>>>>
>>>>.
>>>>
>>>>
>>>>
>>>_______________________________________________
>>>Serusers mailing list
>>>serusers at lists.iptel.org
>>>http://lists.iptel.org/mailman/listinfo/serusers
>>>
>>
>>
>>
>>.
>>
>>
>
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
> 




More information about the sr-users mailing list