Aşağıda vereceğim kod ile herhangi bir kullanıcının ip edresini kolayca alabilirsiniz.
if (getenv(HTTP_X_FORWARDED_FOR)) {
$ip = getenv(HTTP_X_FORWARDED_FOR);
} else {
$ip = getenv(REMOTE_ADDR);
}
echo $ip; //ip adresini verir
?>
January 12th, 2010
admin Aşağıda vereceğim kod ile herhangi bir kullanıcının ip edresini kolayca alabilirsiniz.
if (getenv(HTTP_X_FORWARDED_FOR)) {
$ip = getenv(HTTP_X_FORWARDED_FOR);
} else {
$ip = getenv(REMOTE_ADDR);
}
echo $ip; //ip adresini verir
?>