Re: [PHP] $_ENV or getenv to get bash environmental variables.. change php.ini?? env vars

2008-07-23 Thread mike
On 7/23/08, mindspin311 <[EMAIL PROTECTED]> wrote: > > I want to be able to do a getenv('SYMFONY_HOME'); or any env var that I've > setup in my /etc/bashrc for everyone. But apache obviously doesn't have a > shell, so it doesn't know about these. only the stuff in $_ENV. > > What I want to know is

[PHP] $_ENV or getenv to get bash environmental variables.. change php.ini?? env vars

2008-07-23 Thread mindspin311
I want to be able to do a getenv('SYMFONY_HOME'); or any env var that I've setup in my /etc/bashrc for everyone. But apache obviously doesn't have a shell, so it doesn't know about these. only the stuff in $_ENV. What I want to know is how can I read env vars like ANT_HOME, JAVA_HOME, etc.. in p

[PHP] $_ENV vars

2005-01-09 Thread Charly Tango
I have an Ultra5 (sparc64) running kernel 2.4.27 and Apache 2.0.52 with mod_php 4.3.9. The problem is that when i try to list all environment vars (mostly i need to see Operating System's vars), PHP can see only $_ENV["PATH"], and can't see any other $_ENV[] var. phpinfo() lists only "PATH" environ

Re: [PHP] _ENV

2004-01-09 Thread Stuart
Diana Castillo wrote: Can someone tell me the name of the environmental variable that tells you the path that you are in? http://php.net/getcwd or for the virtual path to the script... dirname($_SERVER['SCRIPT_NAME']); or for the document root of the current site... $_SERVER['DOCUMENT_ROOT'] -

[PHP] _ENV

2004-01-09 Thread Diana Castillo
Can someone tell me the name of the environmental variable that tells you the path that you are in? -- -- Diana Castillo Global Reservas, S.L. C/Granvia 22 dcdo 4-dcha 28013 Madrid-Spain Tel : 00-34-913604039 Fax : 00-34-915228673 email: [EMAIL PROTECTED] Web : http://www.hotelkey.com http:/

[PHP] Passing POST args to PHP when run as a CGI (was Re: [PHP] $_ENV not working for me with PHP 4.2.0)

2003-10-06 Thread John Wilcox
--- Curt Zirzow <[EMAIL PROTECTED]> wrote: > Technically it is 4.1.0 (where did you see the > 4.2.0?) but anything > prior to that you should use $HTTP_ENV_VARS my mistake, you're right, it was 4.1.0. > http://php.net/manual/en/language.variables.predefined.php > http://php.net/manual/en/reserve

Re: [PHP] $_ENV not working for me with PHP 4.2.0

2003-10-06 Thread Burhan Khalid
John Wilcox wrote: I've been trying to make a simple script which just outputs the username that the script is currently executing under (in order to test that suexec is working properly). I've tried using the following line: and it fails to produce any output and returns the following error in

Re: [PHP] $_ENV not working for me with PHP 4.2.0

2003-10-05 Thread John Wilcox
Hi Tom, when I put "echo `printenv`;" into a script, I see in big bold letters: USER=john so this environment variable seems to be available.. getenv('USER'); works fine, so I guess I'll just use that instead.. No idea why $_ENV['USER']; doesn't work though. Thanks for the suggestion, John ---

Re: [PHP] $_ENV not working for me with PHP 4.2.0

2003-10-05 Thread Curt Zirzow
* Thus wrote John Wilcox ([EMAIL PROTECTED]): > I've been trying to make a simple script which just > outputs the username that the script is currently > executing under (in order to test that suexec is > working properly). I've tried using the following > line: > > This var isn't the USER that

Re: [PHP] $_ENV not working for me with PHP 4.2.0

2003-10-05 Thread Tom Rogers
Hi, Monday, October 6, 2003, 4:43:20 AM, you wrote: JW> I've been trying to make a simple script which just JW> outputs the username that the script is currently JW> executing under (in order to test that suexec is JW> working properly). I've tried using the following JW> line: JW> JW> and it

[PHP] $_ENV not working for me with PHP 4.2.0

2003-10-05 Thread John Wilcox
I've been trying to make a simple script which just outputs the username that the script is currently executing under (in order to test that suexec is working properly). I've tried using the following line: and it fails to produce any output and returns the following error in my log file: "[Sun