Page 1 of 1

Client Environmental Variables

Posted: Tue Mar 14, 2006 9:41 am
by dt
I am working on a PHP/MySQL project to be used internally in our organization.

I would like to be able to capture one or more environmental variables from the client computer in a PHP script.

For example, all of our client machines have Winders variables as follows:
FULLNAME=John Smith
USERNAME=JSmith

I would like to grab these two bits of info and plug them into data entry form, but so far I have found that I am not smart enough to figure out how to do this in PHP.

Any help would be appriciated.

Thanks,

Daryl

Posted: Tue Mar 14, 2006 9:50 am
by phpScott
as far as I aware you can't.

PHP will reside on your web server, client computer information sits on client computer, and with php the two shall never meet.

Posted: Tue Mar 14, 2006 11:42 am
by Maugrim_The_Reaper
Not possible to my limited knowledge of Windows and browsers. The problem is allowing a browser to read such variables and transmit them over a network could then easily be misused. Maybe someone knows some way of using an intranet setup for this? Proxy authentication values appended to variables on a limited set of URI's across the intranet?

Just grasping for straws...

Posted: Tue Mar 14, 2006 11:45 am
by John Cartwright
With PHP alone? Not that I know of.

Is this for inter- or intranet

Posted: Tue Mar 14, 2006 11:50 am
by dt
Intranet.

I may use LDAP for authentication then. I was thinking security is not a big issue and most of my users do not know how to set an environmental variable, so this was going to be an ease-of-use feature for my users (i.e. I can tell generally who it is without having them enter their name and/or password).

Thanks,

Daryl