$uri=GetEnv("REQUEST_URI"); $uri=explode(".....",$uri); $ips=GetEnv("REMOTE_ADDR"); $ip=explode(".",$ips);