.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Programming (http://forums.bots-united.com/forumdisplay.php?f=25)
-   -   PHP IP Adress grabber (http://forums.bots-united.com/showthread.php?t=3212)

biohazerd87 15-12-2004 23:38

PHP IP Adress grabber
 
does anyone know a good IP address grabber... for some reason i can't get any to work! please help

Pierre-Marie Baty 16-12-2004 00:17

Re: PHP IP Adress grabber
 
tcpdump
:P

biohazerd87 16-12-2004 00:25

Re: PHP IP Adress grabber
 
not helpful lol... but really i can't seem to get any to work

Cheeseh 16-12-2004 01:35

Re: PHP IP Adress grabber
 
what is a IP address grabber exactly? :O (i may even be able to help if I don't know what it is you need to do!)

biohazerd87 16-12-2004 01:40

Re: PHP IP Adress grabber
 
it gets the person's ip... and then displays it... i know how to display it but i can't get my IP getter to work

Cheeseh 16-12-2004 01:59

Re: PHP IP Adress grabber
 
this is for PHP? have you tried : http://uk2.php.net/manual/en/function.gethostbyaddr.php

(that's

PHP Code:

$_SERVER["REMOTE_ADDR"

I think that gets the IP??

stefanhendriks 16-12-2004 10:28

Re: PHP IP Adress grabber
 
funny,

you can show it, print it, or whatever, but you cannot store it away? If you can show it, you can probably put it into a variable? :S

biohazerd87 16-12-2004 21:49

Re: PHP IP Adress grabber
 
Quote:

Originally Posted by Cheeseh
this is for PHP? have you tried : http://uk2.php.net/manual/en/function.gethostbyaddr.php

(that's

PHP Code:

$_SERVER["REMOTE_ADDR"

I think that gets the IP??

it is supposed to work.. i tried that before and it just gets me the server ip

BAStumm 21-01-2005 22:57

Re: PHP IP Adress grabber
 
$_SERVER["REMOTE_ADDR"]

is correct.

http://bs-linux.com/devel/ip.php

PHP Code:

 
 <?
 
 echo $_SERVER["REMOTE_ADDR"];
 
 ?>



All times are GMT +2. The time now is 03:20.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.