Help on IP [SOLVED]
Posted: Sat Oct 08, 2005 5:57 am
Hey all 
I making just a litle thing aroud ip's in php.
That's the code i'm using. The only thing i wanted is that he display the ip of the user and if the ip match the ip i give up, that he say's welcome LmS. Some how he dont show ip, and allways ay Please, go away!
Can anyone help me ?
Thnx,
I making just a litle thing aroud ip's in php.
Code: Select all
<?
$ip=@$REMOTE_ADDR;
echo "<font face='Verdana' size='3'><b>IP Address= $ip</b>";
//Replace the Your IP To the ip you want to allow
if($ip == "Your IP") {
echo "<BR>";
echo "Welcome LmS";
} else {
echo "<BR>";
echo "Please, go away!";
}
?>Can anyone help me ?
Thnx,