Thread
:
PHP - Get Computer Name
View Single Post
#
4
(
permalink
)
05-25-2006, 05:21 AM
speed
WebProWorld Veteran
Join Date: Aug 2003
Location: Cornwall, UK
Posts: 833
Ok, I don't use PHP on Windows nor do I have it installed to test this but have you tried reading the environment variable COMPUTERNAME?
getenv('HOSTNAME') should return the host name on Linux.
__________________
TOLRA Micro Systems Limited
US & UK Web Hosting
with Continuous Data Protection
Web Directory 2 for 1 Offer
:
Web Directory Script
speed
View Public Profile
Send a private message to speed
Visit speed's homepage!
Find all posts by speed