oracle259 Posted October 17, 2006 Share Posted October 17, 2006 Hey do you guys know of any way that i can retrieve the computer name of a computer on a domain using php or a combination of php and javascript.say eg that the name given to my computer by the MIS dept is OSP1 on domain NETDOMAIN how can i retrieve the OSP1 computer name using php or php + javascript Link to comment https://forums.phpfreaks.com/topic/24244-retrieving-client-side-information-using-php/ Share on other sites More sharing options...
Ninjakreborn Posted October 17, 2006 Share Posted October 17, 2006 Ah.You could probably have a bot hit the who-is database and do a search for it, and see what you can find, and then extract that piece of data. However the who-is might not allow that, so you might want to check there terms of service, or be careful or they could block your ip. Link to comment https://forums.phpfreaks.com/topic/24244-retrieving-client-side-information-using-php/#findComment-110190 Share on other sites More sharing options...
oracle259 Posted October 17, 2006 Author Share Posted October 17, 2006 how do i go about doing that? Help Link to comment https://forums.phpfreaks.com/topic/24244-retrieving-client-side-information-using-php/#findComment-110245 Share on other sites More sharing options...
Barand Posted October 17, 2006 Share Posted October 17, 2006 I can't test this until I get into the office tomorrow and back on the network but perhaps[code]<?php$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); echo $hostname;?>[/code] Link to comment https://forums.phpfreaks.com/topic/24244-retrieving-client-side-information-using-php/#findComment-110314 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.