Can I use PHP to display a local computer's name on a web page? What I want is to set the Intranet default page to display each computer's name on the network... How?
Butch
Display Local Computer Name?
Moderator: General Moderators
- ambivalent
- Forum Contributor
- Posts: 173
- Joined: Thu Apr 14, 2005 8:58 pm
- Location: Toronto, ON
This thread may be of interest: viewtopic.php?t=22130&highlight=psloggedon
Not what I want
I dont really want to ad more tools to the server. Since the command line *hostname* would give me exactly what I want, I'd think PHP would have a similar command. Can't seem to find it though....
Butch
Butch
- ambivalent
- Forum Contributor
- Posts: 173
- Joined: Thu Apr 14, 2005 8:58 pm
- Location: Toronto, ON
gethostbyaddr()
In a Microsoft intranet environment it returns something like computername.corp.domain.com. YMMV
In a Microsoft intranet environment it returns something like computername.corp.domain.com. YMMV