-2

i want to get client IP address who uses my website. i am using php $_server super global

$_server['REMOTE_ADDER'];

but i see it cannot give the correct IP address

Abdul Hameed
  • 263
  • 4
  • 19

3 Answers3

1

It should be contained in the $_SERVER['REMOTE_ADDR'] variable.

aarju mishra
  • 710
  • 3
  • 10
0

It is a typo mistake use below . The Pre Defined Variables in PHP are Case sensitive should be used in UPPER CASE.

$_SERVER['REMOTE_ADDR'];
Megan Fox
  • 435
  • 2
  • 6
  • 20
user3040610
  • 750
  • 4
  • 15
0

It should be

$_SERVER['REMOTE_ADDR'];
phreakv6
  • 2,135
  • 1
  • 9
  • 11