10.04.2010, 21:44
You could use my PHP query API (shameless advertising here) which has it built in, or you could add this. It's untested though.
Code:
<?php
function isServerOnline()
{
if($this->sendPacket('p4150') === FALSE)
{
return false;
}
if(fread($this->rSocket, 15) === FALSE)
{
return false;
}
return true;
}
?>

