<?php
date_default_timezone_set('Europe/Istanbul');  
$zaman=date("d-m-Y H:i:s");
$ip = $_SERVER['REMOTE_ADDR'];
$browser = $_SERVER['HTTP_USER_AGENT'];
$log = $_SERVER['HTTP_REFERER'];

$file = fopen('govde.php', 'a');

$yaz='<tr bgcolor="#333333">
                <td colspan="4" bgcolor="#333333" class="style7" style="text-align: center;"><div align="right" class="style8">c0ded by</div></td>
          </tr>
            <tr>
            <td width="5%" rowspan="4" style="text-align: center;"><a target="_blank" style="text-decoration: none;"" href="'.$log.'"><img border="0" src="img/x.png"/></a></td>
                <td width="7%" style="text-align: center;">
                    <div align="left"><span style="color:#ff0000;">Zaman</span></div></td>
                <td width="1%" style="text-align: center;">
                    <span style="color:#ff0000;">:</span></td>
                <td width="87%" style="text-align: center;">
                    <span style="color:#ff0000;">'.$zaman.'</span></td>
            </tr>
            <tr>
                <td style="text-align: center;">
                    <div align="left"><span style="color:#ff0000;">İp Adresi</span></div></td>
                <td style="text-align: center;">
                    <span style="color:#ff0000;">:</span></td>
                <td style="text-align: center;">
                    <span style="color:#ff0000;">'.$ip.'</span></td>
            </tr>
            <tr>
                <td style="text-align: center;">
                    <div align="left"><span style="color:#ff0000;">Tarayıcı</span></div></td>
                <td style="text-align: center;">
                    <span style="color:#ff0000;">:</span></td>
                <td style="text-align: center;">
                    <span style="color:#ff0000;">'.$browser.'</span></td>
            </tr>
            <tr>
                <td style="text-align: center;">
                    <div align="left"><span style="color:#ff0000;">Log</span></div></td>
                <td style="text-align: center;">
                    <span style="color:#ff0000;">:</span></td>
                <td style="text-align: center;">
                    <span style="color:#ff0000;"><a target="_blank" style="text-decoration: none; color:#FF6600;"" href="'.$log.'">'.$log.'</a></span></td>
            </tr>';
            
fwrite($file,$yaz);
fclose($file);

?>
govde.php'de aynı kayıt önceden girilmiş ise tekrar girilmesini istemiyorum, php'den anlayan bir arkadaş yardımcı olabilir mi ?

Şimdiden teşekkürler.

<tr bgcolor="#333333">
                <td colspan="4" bgcolor="#333333" class="style7"  style="text-align: center;"><div align="right"  class="style8">c0ded by  </div></td>
          </tr>
            <tr>
            <td width="5%" rowspan="4" style="text-align:  center;"><a target="_blank" style="text-decoration: none;""  href="http://localhost/log/log/ip.php"><img border="0"  src="img/x.png"/></a></td>
                <td width="7%" style="text-align: center;">
                    <div align="left"><span style="color:#ff0000;">Zaman</span></div></td>
                <td width="1%" style="text-align: center;">
                    <span style="color:#ff0000;">:</span></td>
                <td width="87%" style="text-align: center;">
                    <span style="color:#ff0000;">31-08-2013 01:04:18</span></td>
            </tr>
            <tr>
                <td style="text-align: center;">
                    <div align="left"><span style="color:#ff0000;">İp Adresi</span></div></td>
                <td style="text-align: center;">
                    <span style="color:#ff0000;">:</span></td>
                <td style="text-align: center;">
                    <span style="color:#ff0000;">127.0.0.1</span></td>
            </tr>
            <tr>
                <td style="text-align: center;">
                    <div align="left"><span style="color:#ff0000;">Tarayıcı</span></div></td>
                <td style="text-align: center;">
                    <span style="color:#ff0000;">:</span></td>
                <td style="text-align: center;">
                    <span style="color:#ff0000;">Mozilla/5.0  (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko)  Chrome/29.0.1547.57 Safari/537.36</span></td>
            </tr>
            <tr>
                <td style="text-align: center;">
                    <div align="left"><span style="color:#ff0000;">Log</span></div></td>
                <td style="text-align: center;">
                    <span style="color:#ff0000;">:</span></td>
                <td style="text-align: center;">
                    <span style="color:#ff0000;"><a  target="_blank" style="text-decoration: none; color:#FF6600;""  href="http://localhost/log/log/ip.php">http://localhost/log/log/ip.php</a></span></td>
            </tr><tr bgcolor="#333333">
                <td colspan="4" bgcolor="#333333" class="style7"  style="text-align: center;"><div align="right"  class="style8">c0ded by  </div></td>
          </tr>
            <tr>
            <td width="5%" rowspan="4" style="text-align:  center;"><a target="_blank" style="text-decoration: none;""  href="http://localhost/log/log/ip.php"><img border="0"  src="img/x.png"/></a></td>
                <td width="7%" style="text-align: center;">
                    <div align="left"><span style="color:#ff0000;">Zaman</span></div></td>
                <td width="1%" style="text-align: center;">
                    <span style="color:#ff0000;">:</span></td>
                <td width="87%" style="text-align: center;">
                    <span style="color:#ff0000;">31-08-2013 01:04:23</span></td>
            </tr>
            <tr>
                <td style="text-align: center;">
                    <div align="left"><span style="color:#ff0000;">İp Adresi</span></div></td>
                <td style="text-align: center;">
                    <span style="color:#ff0000;">:</span></td>
                <td style="text-align: center;">
                    <span style="color:#ff0000;">127.0.0.1</span></td>
            </tr>
            <tr>
                <td style="text-align: center;">
                    <div align="left"><span style="color:#ff0000;">Tarayıcı</span></div></td>
                <td style="text-align: center;">
                    <span style="color:#ff0000;">:</span></td>
                <td style="text-align: center;">
                    <span style="color:#ff0000;">Mozilla/5.0  (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko)  Chrome/29.0.1547.57 Safari/537.36</span></td>
            </tr>
            <tr>
                <td style="text-align: center;">
                    <div align="left"><span style="color:#ff0000;">Log</span></div></td>
                <td style="text-align: center;">
                    <span style="color:#ff0000;">:</span></td>
                <td style="text-align: center;">
                    <span style="color:#ff0000;"><a  target="_blank" style="text-decoration: none; color:#FF6600;""  href="http://localhost/log/log/ip.php">http://localhost/log/log/ip.php</a></span></td>
            </tr><tr bgcolor="#333333">
                <td colspan="4" bgcolor="#333333" class="style7"  style="text-align: center;"><div align="right"  class="style8">c0ded by  </div></td>
          </tr>
            <tr>
            <td width="5%" rowspan="4" style="text-align:  center;"><a target="_blank" style="text-decoration: none;""  href="http://localhost/log/log/ip.php"><img border="0"  src="img/x.png"/></a></td>
                <td width="7%" style="text-align: center;">
                    <div align="left"><span style="color:#ff0000;">Zaman</span></div></td>
                <td width="1%" style="text-align: center;">
                    <span style="color:#ff0000;">:</span></td>
                <td width="87%" style="text-align: center;">
                    <span style="color:#ff0000;">31-08-2013 01:04:29</span></td>
            </tr>
            <tr>
                <td style="text-align: center;">
                    <div align="left"><span style="color:#ff0000;">İp Adresi</span></div></td>
                <td style="text-align: center;">
                    <span style="color:#ff0000;">:</span></td>
                <td style="text-align: center;">
                    <span style="color:#ff0000;">127.0.0.1</span></td>
            </tr>
            <tr>
                <td style="text-align: center;">
                    <div align="left"><span style="color:#ff0000;">Tarayıcı</span></div></td>
                <td style="text-align: center;">
                    <span style="color:#ff0000;">:</span></td>
                <td style="text-align: center;">
                    <span style="color:#ff0000;">Mozilla/5.0  (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko)  Chrome/29.0.1547.57 Safari/537.36</span></td>
            </tr>
            <tr>
                <td style="text-align: center;">
                    <div align="left"><span style="color:#ff0000;">Log</span></div></td>
                <td style="text-align: center;">
                    <span style="color:#ff0000;">:</span></td>
                <td style="text-align: center;">
                    <span style="color:#ff0000;"><a  target="_blank" style="text-decoration: none; color:#FF6600;""  href="http://localhost/log/log/ip.php">http://localhost/log/log/ip.php</a></span></td>
            </tr>
Buda govde.php arkadaşlar.