Spotlight Xin code check IP trùng...

binh6699

Hero
Verified
Joined
Feb 17, 2011
Messages
3,403
Reactions
2,605
MR
20.023
Follow me on Facebook
<?php
if($_POST['submit']){
$ip = $_SERVER['REMOTE_ADDR'];
$db = file_get_contents("ip2.txt");
if(!strpos("$db",$ip)){
$fp = fopen("ip2.txt","w");
fwrite($fp,$db."\n".$ip);
echo 'IP Khong bi trung !!! '.$ip;
}else echo 'IP nay da bi trung';
}else{
?>
<form method="post" name= "new_add" action="ip2.php">
<br>
<input class="submit" type="submit" name="submit" value="Kiem Tra" />&nbsp;
</form>
<?
}
?>

php .
 

daosythui79

Banned
Verified
Joined
Jul 9, 2011
Messages
1,445
Reactions
1,140
MR
0.000

Announcements

Today's birthdays

Forum statistics

Threads
427,358
Messages
7,205,991
Members
179,650
Latest member
ledinhnhat

Most viewed of week

Most discussed of week

Most viewed of week

Most discussed of week

Back
Top Bottom