simply user/server online status and ranking

Status
Not open for further replies.
Re: [req]simply user/server online status and ranking

ill give you the code to chekc if its online, But i dont know what ports and if its UDP or TCP. but here

PHP:
<?
/* Php Code */
$srvip = "CHANGEME";
$srvport = "CHNGME";
?>
<p>Srv_Name: 
   
<?php 
$fp = @fsockopen($srvip, $srvport, $errno, $errstr, 1);
if (!$fp) {
    echo "<font style='color: #FF3300'><B>Offline</B></font></br>";
} else {
    echo "<font style='color: #009933'><B>Online</B></font></br>";
    fclose($fp);
} ?> </p>

All you gotta do is change srv-Name, The Port and SRVIP to your IP. Note: IT HAS TO BE IPS Only. you can use the Hamachi thing if you really need it.

Btw make sure you have short tags enabled else change <? with <?php
 
Upvote 0
Re: [req]simply user/server online status and ranking

Very very tanks it's nice works!
If someone help me whit php i work in the interface site and release web files for all!
 
Upvote 0
Re: [req]simply user/server online status and ranking

Dang why didnt I think of that. Thanks Dark.
 
Upvote 0
Re: [req]simply user/server online status and ranking

no need to edit server files -.-! Write in php or another language procedures do read data blocks from account files u will need to catch some offsets and after that write the php script or program and make to update the data in each day (do a task for it using windows taskmanager), after that write a php page to catch data from mysql db.
 
Upvote 0
Status
Not open for further replies.
Back