Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $server = "77.251.48.77";
- $port = "25565";
- $port2 = "8123";
- $timeout = "10";
- if ($server and $port and $timeout) {
- $verbinding = @fsockopen("$server", $port, $errno, $errstr, $timeout);
- $ircbinding = @fsockopen("$server", $port2, $errno, $errstr, $timeout);
- }
- if($verbinding) {
- echo "<b>Minecraft server is online</b><br>";
- }
- else {
- echo "Minecraft server is offline";
- }
- if($ircbinding) {
- echo "<b>Dynmap Map is online</b>";
- }
- else {
- echo "<b>Dynmap Map is offline</b>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement