windows computer name

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
jonathant
Forum Commoner
Posts: 32
Joined: Sat Jan 07, 2006 3:13 pm

windows computer name

Post by jonathant »

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!
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Post Reply