PDA

View Full Version : Server Status Script


D I N O
01-11-2009, 04:01 AM
Server Status Script
<?php
echo "<table align='center'>";

// here's where you add/change/remove the servers you want to display
ShowServ("Vividgamers", "www.vividgamers.com", 80); ShowServ("Purechaos Forums", "www.purechaos.org", 80); ShowServ("DotXtreem Forums", "www.dotxtreem.com", 80); ShowServ("DotXtreem Shot", "www.shot.dotxtreem.com", 80); ShowServ("Rune-Server", "www.rune-server.org", 80);

echo "</table>";

function ShowServ($name, $ip, $port) {
echo "<tr>";
echo "<td>" . $name . ":&nbsp</td>";
$fp = fsockopen("$ip", $port, $errno, $errstr, 1);
if ($fp) {
echo "<td class='online'>Server Online</td>";
} else {
echo "<td class='offline'>Server Offline</td>";
}
echo "</tr>";
fclose($fp);
}
?>


To Add New Servers After The Last: ", 80);" Add " ShowServ("Title Here", "Website_Address Here", Port_Here);"

~DINO

kartesh
01-11-2009, 04:19 AM
can you tell me more bout this lol? how to use.

D I N O
01-11-2009, 05:12 AM
Its simple, it checks if a website or if a private server is online.

The port for websites is 80
The port for RSPS is normally 43594, but it can be 5555 or 12345

Russian
01-11-2009, 05:13 AM
Wow this is Pretty Goof, Good Job.

kill me l00t
01-11-2009, 05:14 AM
This has been Posted on Rune-server before, aswell as Moparscape. Leeched

D I N O
01-11-2009, 05:27 AM
This has been Posted on Rune-server before, aswell as Moparscape. Leeched

Bro, I was the one who posted this on Rune-Server, and if its on Moparscape someone has leeched it from me!

I DON'T LEECH!

nuffenburger
01-17-2009, 07:53 AM
lol i've seen this everywhere.
plus they use it in the srcps
lol

D I N O
01-28-2009, 04:35 PM
Wel they leeched it from me, i created it. Or we both created a script with the exact code XD

Ff7Cloud0 99
01-30-2009, 01:06 AM
Absolutely pointless to make a function.

D I N O
01-30-2009, 05:12 AM
Still works dosn't it.

and your not going to get very far if thats your 6th post and putting down my code. :X

Ff7Cloud0 99
02-02-2009, 05:35 PM
Still works dosn't it.

and your not going to get very far if thats your 6th post and putting down my code. :X

Since when does post count matter? Because its just a number in my eyes, it doesn't say anything about you.

Besides I've been here far longer than you would ever know. So slash that, and you didn't make this, hundreds of topics on communities use the same functions to make such a simple php script, its very common, you cannot say 'hey look what i made' because the reality of the matter is, you didn't, you are just turning the invention wheel.

~Cloud

Skilzgod
02-02-2009, 05:58 PM
lets say this: explain to ous how you made it.
P.s leeched (just wants mod).