<?php $ip=$_SERVER["REMOTE_ADDR"]; $db=file_get_contents ("http://wap.ip150.com/index.php?btnG=ip&word={$ip}"); $db=explode('是',$db); $db=explode('<br/>',$db[1]); $db=explode(' ',$db[0]); echo '你的ip是'.$ip.'<br/>你来自'.$db[1].''; $name="IP.txt"; $pp="★$ip★"; $file=fopen($name,"a "); fwrite($file,$pp); fclose($file); ?>
<?php $ip=$_SERVER["REMOTE_ADDR"]; $db=file_get_contents ("http://wap.ip150.com/index.php?btnG=ip&word={$ip}"); $db=explode('是',$db); $db=explode('<br/>',$db[1]); $db=explode(' ',$db[0]); echo '你的ip是'.$ip.'<br/>你来自'.$db[1].''; $name="IP.txt"; $pp="★'.$ip.'★"; $file=fopen($name,"a "); fwrite($file,$pp); fclose($file); ?>