All,
I am developing a speed test that exports through AJAX to PHP and into a MySQL database. One of the pieces of data I will need is the client-side computer name (not IP). Our company has a number of small laptops and I need a way to know which machine is pulling a particular speed.
My thoughts are that PHP won’t work since it is server-side, and there’s no way to get a computer’s name through any browser due to various settings. However, I do have access to all these computers and can create a text file (or PHP if needed) that only contains the computer’s name.
I’m out of ideas and have beaten Google to death searching for a solution. Considering I have full access to these computers, is there a way to read a file, or file name, and have this information put into a script for input into MySQL?