I saw your videotutorial about making a minequery server status checker and copied all the code succesfully without errors... But when I open index.php (the page that echoes you the server status) in my browser, it shows that the server is offline also if it is up and accepting players.
I forwarded all my ports (the MC server is on 25566 and minequery on 25567, I also use no-ip to get a DDNS) so everyone can see me over the net...
IDK why this happens, can you help me?
However I'm hosting this script on a freehostia free web hosting...
Code:
<?php
include("core/init.inc.php");
$info = fetch_server_info($config['server']['ip'], $config['server']['port']);
?>
<html>
<head>
<title></title>
</head>
<body>
<div>
<h1><?php echo $config['server']['ip']; ?></h1>
<?php
if ($info === false){
?>
<p>Status: Offline</p>
<?php
}else{
?>
<p>Status: Online</p>
<p>Slots <?php echo $info['playerCount']; ?> / <?php echo $info['maxPlayers']; ?></p>
<p>Players: <?php echo implode(', ', $info['playerList']); ?></p>
<?php
}
?>
</div>
</body>
</html>
I also want to say that I am already registered on MineStatus.net and there the Server Status Checker works without problems...