PHP automatically parses the environment into either $_ENV array (or $HTTP_ENV_VARS if PHP version is pre 4.1.0). I think the environment should show who is logged in.

Fil

Simon Bryan wrote:
Hi all,
I have had a number of php scripts written for me by a person on work
placement, however they have now gone. One of the scripts reads the users
download total from the Squidalyser database, however it does not do any
authentication so anyone can view anyone elses download total.

Users authenticate against the NT server. Is it possible in php to
automatically detect the logged in username by reading it from the
environment? I can do this with windows scripts.

_________________________________________
Simon Bryan
IT Manager
OLMC Parramata
ICQ#: 137562751
_________________________________________



--
Phil Scarratt
Draxsen Technologies
IT Contractor/Consultant
0403 53 12 71

--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to