Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Help] Script / php for server online

Newbie Spellweaver
Joined
Sep 11, 2018
Messages
29
Reaction score
1
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
 
Junior Spellweaver
Joined
Aug 7, 2010
Messages
137
Reaction score
138
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?
 
Upvote 0
Back
Top