1

I am using $_SERVER['REMOTE_ADDR'] to log the user IP and then locate them.

However the number returned is like 19377 when full address is 193.77.xxx.xxx

How can I:

  1. get the full IP
  2. maintain the "." structure
Racil Hilan
  • 24,690
  • 13
  • 50
  • 55
the_arthemis
  • 87
  • 1
  • 1
  • 8

1 Answers1

0

Thank you all! I figured it out!

I needed to change the field type from 11 INT to 16 VARCHAR to accommodate the different characters.

the_arthemis
  • 87
  • 1
  • 1
  • 8