I am working on a class project for a medical mission. It is an application to record patient information for a medical mission. Right now, I have apache/php/mysql on a jump drive. When the user (volunteers) get down to the mission field (jungle with no Internet access), they can insert the jump drive to start the application. I have all this set up correctly so far, but I'm wanting to make it simple for members of a wireless network to access the application.
So far the only way I can think to do it is to use $_SERVER['SERVER_ADDR'] to get the IP of the server machine. Then the users could pass the IP around to those wanting access to the application. But, typing an IP address is annoying and error-prone (hence dns). So, what I really want is a method to determine the server computer's Windows name. That way, others on the network could access the the application with an easier name, rather than an IP address. So, does anyone know how to use some server side language to get the computer name, and then pass that name to PHP?
Let me know if this scenario isn't clear and I'll try to be more specific. Thanks for any help!
windows computer name
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
http://www.sysinternals.com/Utilities/PsInfo.html may be of interest.