<?php /* IP посетителя */ $ip = isset($_COOKIE['ip_host']) ? $_COOKIE['ip_host'] : $_SERVER['REMOTE_ADDR']; if (empty($_COOKIE['ip_host'])) { setcookie('ip_host', $_SERVER['REMOTE_ADDR'], time() + 3600 * 24, '/'); } ?>