Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In older version of PHP, I had got client's IP address by $REMOTE_ADDR or $_SERVER['REMOTE_ADDR'], but sometimes it does not work .Following on latest version of PHP. Following code helps you to get the correct client IP address.

...