MineCraft Server Status [PHP]

Status
This thread has been locked.

KingEdwardx

Feedback score
0
Posts
4
Reactions
2
Resources
0
Hey! Do u need free minecraft server status for website?
Here:


<?php

$ip = 'play.myserver.eu'; // IP
$port = 25621; // PORT

$checkSock = @fsockopen($ip, $port, $empty, $empty, 1); //Dont edit this!

if($checkSock !== FALSE)
{
echo 'Online';
}else{
echo 'Offline';
}

?>
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Wvisoecj

Supreme
Feedback score
9
Posts
471
Reactions
677
Resources
0
Unfortunately fsocket is disabled on most web hosts. PM me if you want a solution that will always work.
 
Status
This thread has been locked.
Top