> Hi, > How can I get remote IP adress of client? > I use the fillow script:: > > $ip=getenv('HTTP_X_FORWARDED_FOR'); > if (!$ip) > { > $ip = getenv('REMOTE_ADDR'); > } > > > But sometime it return me "unknown" sa IP adress. > > Can someone help me ? > > Thanks in advance!
$_SERVER["REMOTE_ADDR"] --Matthew Sims --<http://killermookie.org> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php