I am running a network of Windows computers (in a college lab) each with a different computer name. I am writing an online help script where the users enter a problem, and it records their computer's information along with the recorded problem. How can I record the computer's name (and other info)? is there some sort of PHP (or browser) function that I can call?
goto http://ca.php.net/manual/en/reserved.variables.php#reserved.variables.post
reg kevin
That information is not available to PHP. You would have to find an ActiveX control and download it to the user's PC and get the results from that.
ofcourse it is possible. you can use getenv('REMOTE_ADDR'); function to get the user's ip.
and you can use gethostbyaddr($ip_address); function to get user's machine name.
if there is no problem click resolved button below.
Have a look through the variables in $_SERVER[]; if the information you want is available, it's there (exactly where depends on server/network configuration.)