Thanks for the reply,
$statusInfo = new ServerStatus($config['server']['ip'], $config['server']['statusProtocolPort'], 1);
Again, when tibia server is down webpage shows OFFLINE as it should, but when i start the tibia server - webpage just keeps loading in infinite loop (i think thats the loop...