Client Environmental Variables

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dt
Forum Newbie
Posts: 4
Joined: Mon Mar 06, 2006 12:20 pm

Client Environmental Variables

Post 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
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

Post 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.
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post 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...
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

With PHP alone? Not that I know of.

Is this for inter- or intranet
dt
Forum Newbie
Posts: 4
Joined: Mon Mar 06, 2006 12:20 pm

Post 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
Post Reply