PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?
$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!";
}
?>
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,
Last edited by LmS on Sat Oct 08, 2005 7:23 am, edited 1 time in total.