Assign problem to computer
Moderator: General Moderators
Assign problem to computer
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
Re: Assign problem to computer
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.
- Jonah Bron
- DevNet Master
- Posts: 2764
- Joined: Thu Mar 15, 2007 6:28 pm
- Location: Redding, California
Re: Assign problem to computer
...Or special software installed to update the DB every time their IP changes.
- AbraCadaver
- DevNet Master
- Posts: 2572
- Joined: Mon Feb 24, 2003 10:12 am
- Location: The Republic of Texas
- Contact:
Re: Assign problem to computer
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.
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: Assign problem to computer
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.