Assign problem to computer

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
xionhack
Forum Contributor
Posts: 100
Joined: Mon Nov 10, 2008 9:22 pm

Assign problem to computer

Post by xionhack »

Hello. Im making a help desk application that the people in my company will be able to access from their computers to say if they have any computer related problem. The thing is, it wont be possible for me to make a login and password for every user, i cannot assign the problem to the ip or to the hostname because they are not static (by assign I mean to say who the problem belongs to). I want to see if there is a way for me to assign it to the computer itself, or make a way to identify which computer is it through php, i know php is server side but how can I do what im trying to do? Please let me know if Im not being clear
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: Assign problem to computer

Post by Benjamin »

Other than what's in the $_SERVER and $_ENV variables, there really isn't much more to work with. It's doubtful you could do it with Javascript either. If the requirements are that this be tied to machines, then the machines would need to have static IP addresses.
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: Assign problem to computer

Post by Jonah Bron »

...Or special software installed to update the DB every time their IP changes.
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: Assign problem to computer

Post by AbraCadaver »

Why can't you use the hostname? Of course it CAN change, but realistically, when would it change? But probably a better approach would be if they login to their computer you can get their username from $_ENV. This should be unique if you use a directory like AD.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: Assign problem to computer

Post by John Cartwright »

The only other possibility I see is to set a cookie with a long lifespan, which contains a uniquely generated id. This, of course, can also be easily manipulated.
Post Reply