hmsnacker123
07-04-2008, 09:39 PM
Hi, on my webpage i have a guestbook, and i have this code:
<?php
function ip() {
$ip = split('[.]', $_SERVER['REMOTE_ADDR']);
echo 'IP: '.$ip[0].'.'.$ip[1].'.x.x';
}
?>
so it outputs as:
123.456.x.x ( not revealing the whole i.p ;) ),
but my problem is that it only shows your ip on every post!, an i was wondering how would show the indivual user ip's, thanks for any help i get.
<?php
function ip() {
$ip = split('[.]', $_SERVER['REMOTE_ADDR']);
echo 'IP: '.$ip[0].'.'.$ip[1].'.x.x';
}
?>
so it outputs as:
123.456.x.x ( not revealing the whole i.p ;) ),
but my problem is that it only shows your ip on every post!, an i was wondering how would show the indivual user ip's, thanks for any help i get.