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
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
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
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']
-
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:/
--- 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
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
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
---
* 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
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
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
11 matches
Mail list logo