Skip to content

How to grab IP address with PHP

HandsomeDon · Jun 15, 2014 00:32 0 22
HandsomeDon OP
Jun 15, 2014 00:32
How to grab IP address with PHP Today I¡¯ll be showing you how to grab somebodies IP address when they visit a page. The variable to use is *_SERVER['REMOTE_ADDR'] - It¡¯s that simple. You can use it for just about anything, here are a few examples. Printing the Users IP Address: