online in 24h how..

Results 1 to 2 of 2
  1. #1
    Member Rumcajs is offline
    MemberRank
    Nov 2008 Join Date
    54Posts

    online in 24h how..

    Hi,
    I want this script on my website


    Can u give me solution how do this?
    Thanks..


  2. #2
    Enthusiast trojX is offline
    MemberRank
    Jul 2012 Join Date
    <? here ?>Location
    33Posts

    Re: online in 24h how..

    Quote Originally Posted by HeLLaS View Post
    Hi,
    I want this script on my website


    Can u give me solution how do this?
    Thanks..
    Code:
    <?
       $bugunonlineolanlar = mssql_query("select count(*) from memb_stat where connectstat>0");
       $onbugun = mssql_fetch_row($bugunonlineolanlar);
       $bugunkayit = fopen("bugunonline.txt", "a+");
       $bugunkusayi = fread($bugunkayit, Filesize("bugunonline.txt"));
       fclose($bugunkayit);
       if($onbugun[0] > $bugunkusayi){
       $bugunkayit = fopen("bugunonline.txt", "w+");
       fputs($bugunkayit, $onbugun[0]);
       fclose($bugunkayit);
       }
    	$saat = getdate(); 
    
    	if ($saat['hours'] == 00 AND $saat['minutes'] == 00)
    { 
        $kayittemizle = fopen("bugunonline.txt", "w"); 
        fwrite($kayittemizle, '0'); 
        fclose($kayittemizle);     
    } 
       echo "<span style='color: #4aa45a'>$bugunkusayi<span>";		
    			?>
    mycode, enjoy!



Advertisement