ben1989 Posted June 20, 2006 Share Posted June 20, 2006 sorry to post this but the search wont work with IP its under 3 caricters :(what is the $_GET to get the ip?thanks ben :) Quote Link to comment https://forums.phpfreaks.com/topic/12484-getting-ip/ Share on other sites More sharing options...
obsidian Posted June 20, 2006 Share Posted June 20, 2006 [!--quoteo(post=386129:date=Jun 20 2006, 03:41 PM:name=ben_stringer)--][div class=\'quotetop\']QUOTE(ben_stringer @ Jun 20 2006, 03:41 PM) [snapback]386129[/snapback][/div][div class=\'quotemain\'][!--quotec--]sorry to post this but the search wont work with IP its under 3 caricters :(what is the $_GET to get the ip?thanks ben :)[/quote]there isn't a $_GET for it, but you can use $_SERVER:[code]echo $_SERVER['REMOTE_ADDR'];[/code] Quote Link to comment https://forums.phpfreaks.com/topic/12484-getting-ip/#findComment-47777 Share on other sites More sharing options...
ben1989 Posted June 20, 2006 Author Share Posted June 20, 2006 Thanksalso what is it for to say mu hostname eg range23 @btibnbeg .con if u know what i mean :) Quote Link to comment https://forums.phpfreaks.com/topic/12484-getting-ip/#findComment-47779 Share on other sites More sharing options...
ben1989 Posted June 20, 2006 Author Share Posted June 20, 2006 <?php$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); echo $hostname;?>done it :) Quote Link to comment https://forums.phpfreaks.com/topic/12484-getting-ip/#findComment-47787 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.