[Help] Script / php for server online

Results 1 to 3 of 3
  1. #1
    Enthusiast cristitm is offline
    MemberRank
    Sep 2018 Join Date
    29Posts

    [Help] Script / php for server online

    Hello guys, i use mucore 1.0.8 and some templates, alot :) anyway this is the problem that i have

    i can change everything here, but still dont show up that my server its online, dont know why
    Code:
    <?PHP                        /*
    if (eregi("status/servidor.php", $_SERVER['SCRIPT_NAME'])) { die ("Access Denied"); }
    require 'engine/global_config.php';
    
    
    $onlineoffline = "127.0.0.1";
    if ($check=@fsockopen($onlineoffline,55901,$ERROR_NO,$ERROR_STR,(float)0.5)) 
        { 
        fclose($check); 
        echo '<span style="color: #8cff2f"> Online</span>'; 
        }
    else 
        { 
        echo '<span style="color:#FF0000"> Offline</span>'; 
        } 
    */
    ?>


    i have changed to my dns, and also the 55901 its not the port, i have 55900, i have changed everything, still nothing

    and also for users online

    Code:
    ?><br>
    												Users ON: <? 
    												//$sql = mssql_query("SELECT count(*) FROM MEMB_STAT WHERE ConnectStat = '1'");	 
    	//$online= mssql_result($sql, 0, 0);	
    	?><span style="color: #8cff2f">    <?
    	//=$online
    	?>                </span><br>
    </div>
    
    
    					<div class="serv_status">
    						<?PHP


  2. #2
    Valued Member mesosa is offline
    MemberRank
    Aug 2010 Join Date
    140Posts

    Re: [Help] Script / php for server online

    I know that what i'm going to say might sound stupid. Have you noticed that your code is commented? Have you done that to disable that function until you fix the problem or it was like that when you started using it?

  3. #3
    Enthusiast cristitm is offline
    MemberRank
    Sep 2018 Join Date
    29Posts

    Re: [Help] Script / php for server online

    solved. Thank-you

    Request to close .

    Thanks
    Last edited by cristitm; 19-09-18 at 10:48 AM.



Advertisement