Haha ben w'yu gorunce donguye bakmadan direk sallamisim

Kutahyali adlı üyeden alıntı: mesajı görüntüle
              //LOG DOSYASI OLUŞTUR 
                $log_dosya_isim_yaz    = date("Y-m-d_H-i-s"); 
                 
                    $log_ac = fopen($log_dosya_isim_yaz.".txt", 'w'); // Dosya aç



$listele = mysql_query("SELECT * FROM radacct where tarih like '2015-07%'  "); 

    while($cek=mysql_fetch_array($listele)){ 
         
         
        $username            = $cek['username']; 
        $framedipaddress    = $cek['framedipaddress']; 
        $callingstationid             = $cek['callingstationid']; 
        $acctstarttime        = $cek['acctstarttime']; 
        $acctstoptime        = $cek['acctstoptime']; 
         
            @extract ($username); 
            @extract ($framedipaddress); 
            @extract ($callingstationid); 
            @extract ($acctstarttime); 
            @extract ($acctstoptime); 
         
                $birlestir = $username."\t". 
                             $framedipaddress."\t". 
                             $acctstarttime."\t". 
                             $callingstationid."\t". 
                             $acctstoptime; 
                             echo "\n"; 
                              
     
  
                        fwrite($log_ac, $birlestir); // Dosyaya yaz.
                         
                echo $birlestir;             
                         
    }
$log_ac = fopen($log_dosya_isim_yaz.".txt", 'w');

Döngü içerisinde olduğundan her döngü sonrası tekrar kayıt yapıldığı için tek veri kaydediliyor.