How to get the visitor IP

You just need to use the following server PHP variable:

$_SERVER['REMOTE_ADDR']

More info about Server Variables at PHP.net

About Rick

Senior Front-end Software Engineer from Barcelona, Haidong Gumdo Instructor (korean martial art of the sword), street photographer, travel lover, TV addict, Boston Red Sox fan, and privacy advocate.

Leave a Reply

Add <code> Some Code </code> by using this tags.

*
*