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
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']
-
--- 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
7 matches
Mail list logo