jamw3 Posted May 7, 2010 Share Posted May 7, 2010 Hi,Anyone can help me to display my hostname using javascript or php?Thank youRegards,Jam Link to comment Share on other sites More sharing options...
Synook Posted May 7, 2010 Share Posted May 7, 2010 Client computers don't generally have hostnames (except within LANs) - you can get the IP address using PHP's $_SERVER array and its "REMOTE_ADDR" index. Link to comment Share on other sites More sharing options...
jeffman Posted May 7, 2010 Share Posted May 7, 2010 JavaScript (the DOM, really) is very particular about interactions with the client's browser and operating system. Most data and processes outside your actual document are usually forbidden. IE makes more exceptions to this policy than I think it should. The tendency in browser evolution is actually to increase this kind of security. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.