|
You last visited: Today at 07:19
Advertisement
[RELEASE] Server Status Script...
Discussion on [RELEASE] Server Status Script... within the Dekaron Private Server forum part of the Dekaron category.
04/13/2009, 00:16
|
#1
|
elite*gold: 0
Join Date: Apr 2007
Posts: 316
Received Thanks: 94
|
[RELEASE] Server Status Script...
Code:
<html>
<body>
Dekaron Server:
<?
Error_reporting(0);
$fp = @fsockopen('INSERT IP HERE', PORT # HERE, $errno, $errstr, 2);
if($fp){ echo '<font color=green>Online</font>'; }
else{ echo '<font color=red>Offline</font>'; }
fclose($fp);
?>
<br>
Login Server:
<?
Error_reporting(0);
$fp = @fsockopen('INSERT IP HERE', PORT # HERE, $errno, $errstr, 2);
if($fp){ echo '<font color=green>Online</font>'; }
else{ echo '<font color=red>Offline</font>'; }
fclose($fp);
?>
</body>
</html>
Download:
Enjoy!
P.S. I won't be a PHP Support.
Things you need installed for this script to work..
Apache
PHP
**MUST GO ON HOST COMPUTER**
P.P.S. Later this week will be a Custom Auto Updater (No Sources).
|
|
|
04/13/2009, 00:22
|
#2
|
elite*gold: 0
Join Date: May 2008
Posts: 215
Received Thanks: 39
|
Sry but this is only a children release. work a better script , not status....
Why you use 2 seconds not 1 second when u said it must be run on the host server oO no no no .....
|
|
|
04/13/2009, 01:05
|
#3
|
elite*gold: 0
Join Date: Mar 2008
Posts: 68
Received Thanks: 14
|
PapaHarni it's much easy to ur Admin Panel of course ..
But it's work perfect for me but ur AdminPanel doesnt't works ^^
|
|
|
04/13/2009, 01:58
|
#4
|
elite*gold: 0
Join Date: May 2008
Posts: 215
Received Thanks: 39
|
Quote:
Originally Posted by ADHDKiD
Hey douchebag, I've only been programming PHP for 2 weeks. My deal works perfectly for what I need it to do. You can go suck a ****.
|
Your work is stolen from other sites and nothing more.
|
|
|
04/13/2009, 02:09
|
#5
|
elite*gold: 0
Join Date: Apr 2007
Posts: 316
Received Thanks: 94
|
Quote:
Originally Posted by PapaHarni
Your work is stolen from other sites and nothing more.
|
GG on the poor usage of arrays. Why don't you go back to school and learn how to code properly. Kthxbai. Lol @ this. Now you're going from bashing the php coding, to making up a load of bullshit. Well, aren't you a mature chump...
|
|
|
04/13/2009, 02:21
|
#6
|
elite*gold: 0
Join Date: Apr 2007
Posts: 316
Received Thanks: 94
|
Quote:
Originally Posted by ~trane~
#flame posts deleted, stop it.
|
<3
|
|
|
04/13/2009, 10:15
|
#7
|
elite*gold: 0
Join Date: May 2008
Posts: 215
Received Thanks: 39
|
PHP Code:
<?php
error_reporting(0);
ini_set('display_errors',false);
$stats = array(
array('Server IP','GS Port','GS Name'),
array('Server IP','LS Port','LS Name')
);
$count = count($stats);
$i = '0';
echo "<table border='0'>";
for($i >= '0';$i < $count) {
echo "<tr><td align='center'><b><u>".$stats[$i][2]."</b></u></td>";
$fps = @fsockopen($stats[$i][0],$stats[$i][1], $errno, $errstr, 1);
if($fps) {
echo "<td align='center'><font color='green'>Online</font></td><td> </td></tr>";
} else {
echo "<td align='center'><font color='red'>Offline</font></td><td> </td></tr>";
}
fclose($fps);
}
echo "</table>";
?>
|
|
|
04/15/2009, 02:20
|
#8
|
elite*gold: 0
Join Date: Apr 2007
Posts: 316
Received Thanks: 94
|
Quote:
Originally Posted by PapaHarni
PHP Code:
<?php
error_reporting(0);
ini_set('display_errors',false);
$stats = array(
array('Server IP','GS Port','GS Name'),
array('Server IP','LS Port','LS Name')
);
$count = count($stats);
$i = '0';
echo "<table border='0'>";
for($i >= '0';$i < $count) {
echo "<tr><td align='center'><b><u>".$stats[$i][2]."</b></u></td>";
$fps = @fsockopen($stats[$i][0],$stats[$i][1], $errno, $errstr, 1);
if($fps) {
echo "<td align='center'><font color='green'>Online</font></td><td> </td></tr>";
} else {
echo "<td align='center'><font color='red'>Offline</font></td><td> </td></tr>";
}
fclose($fps);
}
echo "</table>";
?>
|
Thanks for the suggestion/idea on how to improve my code. I'm currently working on a file updater system, that'd include a script similar to yours, but it'd be in vb.net
|
|
|
04/29/2009, 17:51
|
#9
|
elite*gold: 0
Join Date: Mar 2009
Posts: 13
Received Thanks: 2
|
Quote:
Originally Posted by PapaHarni
PHP Code:
<?php
error_reporting(0);
ini_set('display_errors',false);
$stats = array(
array('Server IP','GS Port','GS Name'),
array('Server IP','LS Port','LS Name')
);
$count = count($stats);
$i = '0';
echo "<table border='0'>";
for($i >= '0';$i < $count) {
echo "<tr><td align='center'><b><u>".$stats[$i][2]."</b></u></td>";
$fps = @fsockopen($stats[$i][0],$stats[$i][1], $errno, $errstr, 1);
if($fps) {
echo "<td align='center'><font color='green'>Online</font></td><td> </td></tr>";
} else {
echo "<td align='center'><font color='red'>Offline</font></td><td> </td></tr>";
}
fclose($fps);
}
echo "</table>";
?>
|
What`s GS Port','GS Name',
'LS Port','LS Name'
thanks
|
|
|
04/30/2009, 13:17
|
#10
|
elite*gold: 0
Join Date: May 2008
Posts: 215
Received Thanks: 39
|
Quote:
Originally Posted by illidan24
What`s GS Port','GS Name',
'LS Port','LS Name'
thanks
|
GS Port : The Game Server Port / default 7880 i think.
GS Name : The name you wish to see on the page / Most peoples use GameServer
LS Port : The Login Server Port / default 50005 i think.
LS Name : The name you wish to see on the page / Most peoples use LoginServer
example :
GameServer : Offline
LoginServer : online
|
|
|
 |
Similar Threads
|
[Release] If you wanna call it a release. Server status form in php!
06/25/2010 - CO2 PServer Guides & Releases - 10 Replies
Ok, got bored so made this..
serverstatus.php :
<html>
<head>
<title>Server Status!</title>
</head>
|
Server status script
04/29/2010 - WoW Private Server - 5 Replies
Hi wollte mal fragen ob mir vllt jemand ein kleines script basteln könnte. Also php das ich es auf meine hp tun kann.
Es soll Anzeigen wie lange der Server online ist, wie viele Spieler online sind aber getrennt in Horde und Ally. Und noch ne Datenbank Statistik wie viele accounts registriert worden sind.
wäre echt nett wenn mir einer sowas bastenln könnte. Ich hab leider nicht die nötigen php kenntnisse.
mfg Sh4nks
|
Dynamic Server Status Image PHP Script
04/16/2010 - CO2 PServer Guides & Releases - 3 Replies
I've always wanted to do this, and after my success, I'm inviting you all to partake in the ecstasy of my emotion.
The following images were produced using this script:
http://70.233.166.46/DynamicSignature/index.php?i mage=http://img219.imageshack.us/img219/7435/qonqu er3.png&x=45&y=55&ip=188.138.0.76& port=5816
http://70.233.166.46/DynamicSignature/index.php?i mage=http://img219.imageshack.us/img219/7435/qonqu er3.png&x=45&y=55&ip=188.138.0.76& port=5816
...
|
[RELEASE] Aion Server Status
10/19/2009 - Aion Hacks, Bots, Cheats & Exploits - 2 Replies
Hello,
Its not a hack but can be a little handy for you.
EN: Aion has scheduled and non-scheduled maintenances like any MMORPG.Because ofthat players can not always know servers are online or not.Launching Client, typing login credentials and waiting a respond from the loginserver...
A little annoying and time consuming isn't it?
Well,there are web services around that can show you server status but theyare not as handy as a small software on your pc and also they haveconnection...
|
All times are GMT +1. The time now is 07:27.
|
|