Jump to content


recording I.P. address?


  • Please log in to reply
2 replies to this topic

#1 Guest_askjames01_*

Guest_askjames01_*
  • Guests

Posted 12 March 2006 - 03:55 PM

I know this is easy question but i haven't tried this before...
I want to add addtional features to my website counter...

Now, i want to put a condition to get the I.P. address of the visitor...
Just a simple snippet codes will do...

no problem with the counter stuffs. i just want to...
record the I.P. address of the visitor...

Thank you very much in advance...


-/james



#2 hitman6003

hitman6003
  • Members
  • PipPipPip
  • Advanced Member
  • 1,807 posts

Posted 12 March 2006 - 03:57 PM

To get the user's ip:

$ip = $_SERVER['REMOTE_ADDR'];


#3 Guest_askjames01_*

Guest_askjames01_*
  • Guests

Posted 12 March 2006 - 04:14 PM

Thank you mate hitman6003.

-/james





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users