<?php
//Return the visitor's IP addressfunction get_ip(){ if (isset($_SERVER["REMOTE_ADDR"])) { $ip=$_SERVER["REMOTE_ADDR"] .' '; } else if ( isset($_SERVER["HTTP_X_FORWARDED_FOR"]) ) { $ip=$_SERVER["HTTP_X_FORWARDED_FOR"] .' '; } else if ( isset($_SERVER["HTTP_CLIENT_IP"]) ) { $ip=$_SERVER["HTTP_CLIENT_IP"] .' '; } return $ip; }
?>
0 comments:
Post a Comment