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:

<?php print $_ENV['USER']; ?>

and it fails to produce any output and returns the
following error in my log file: "[Sun Oct  5 14:02:35
2003] [error] PHP Notice:  Undefined index:  USER in
/home/test/test.php on line 1"

Now, I've tried the same command on another server
running PHP 4.2.0 and it correctly outputs the
username as expected.  Both these machines are running
Debian Linux.

Now I figure it must be some configuration setting
that is messing this up somehow, but I have no idea
where to look.  I've checked out the documentation and
it states that PHP versions later than 4.2.0 use the
$_ENV global variable to access environment variables,
so it seems like I'm using it correctly.  Anyways, if
anyone has any suggestions, please let me know! 
Thanks in advance,

John Wilcox

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to