Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Share] PHP Status Script L2J 

Status
Not open for further replies.
Newbie Spellweaver
Joined
Jan 18, 2005
Messages
43
Reaction score
0
Save with the name status.php
PHP:
<?php

error_reporting(0);

$IP = array(
"Login Server:" => "YourServerIP:2106",
"Game Server:" => "YourServerIP:7777",
);

echo "<center><table><tr>";

while(list($ServerName,$Host)=each($IP)) {
list($IPAddress,$Port)=explode(":",$Host);
echo "<td>$ServerName</td>";
if($fp=fsockopen($IPAddress,$Port,$ERROR_NO,$ERROR_STR,(float)0.5)) {
echo "<td><font color=green><b>Online</b></font></td>";
fclose($fp);
**
else {
echo "<td><font color=#ff0000><b>Offline</b></td>";
**
echo "</tr>";
**

echo "</table></center>";

?>
 
Skilled Illusionist
Joined
May 12, 2005
Messages
327
Reaction score
0
How do i turn it on?????????
Where i need to put it?????
 
Initiate Mage
Joined
Apr 7, 2006
Messages
4
Reaction score
0
If you want to use img instead of text [green/red]?
You must edit the 2 lines, right?

I use Disk W
 
Experienced Elementalist
Joined
Jan 31, 2006
Messages
293
Reaction score
0
I am sick of say to do not bump old topics =/
 
Status
Not open for further replies.
Back
Top