602 views

Get the user IP in PHP

PHP
  1. $ip = $_SERVER['REMOTE_ADDR']; // gets the ip address and stores it in $ip.
  2.  

­

Tags: PHP ip

Embed: