View previous topic :: View next topic |
Author |
Message |
shimmyshine -
Joined: 01 Jul 2006 Posts: 17
|
Posted: Sun Jul 30, 2006 4:58 pm Post subject: Get Guest IP. |
|
|
I have this Quote: | <?php
$ip = $_SERVER['REMOTE_ADDR'];
?> |
But what is wrong? It only displays mine and whenever I do this Quote: | <?php
if ($ip == '24.144.125.82') {
return 0;
}
$ip = $_SERVER['REMOTE_ADDR'];
?> |
It displays nothing.. because its not allowed to display mine..
I wasn't sure if this was only to PhP Problems with Abyss or any so I thought id ask here just in case..
Thanks,
ShimmyShine |
|
Back to top |
|
|
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Sun Jul 30, 2006 5:04 pm Post subject: |
|
|
Well its only going to display yours because you are the one viewing the page. You should tell the script to save to a text file to get your visitors IP.
Download http://www.abyssunderground.co.uk/files/stats.zip and it will get the stats of your visitors and you can view it online. _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
|
shimmyshine -
Joined: 01 Jul 2006 Posts: 17
|
Posted: Sun Jul 30, 2006 5:06 pm Post subject: |
|
|
Ahh Thankyou very much.. Helps alot!
ShimmyShine |
|
Back to top |
|
|
|