- Joined
- Apr 10, 2008
- Messages
- 52
- Reaction score
- 0
This will be sorta like Server Status But here it is
Make a new php name it w/e u want put this inside of it
Open up your config.php (if you dont have one thats okay just make one called config.php and put this inside)
Put this:
Make a new php name it w/e u want put this inside of it
Code:
<?php
include('config.php');
$fp = @fsockopen($ventip, $ventport, $errno, $errstr, 1);
if (!$fp) {
echo $offline;
} else {
echo $online;
}
?>
Open up your config.php (if you dont have one thats okay just make one called config.php and put this inside)
Put this:
Code:
<?php
$ventip = "127.0.0.1"; //Replace with your WAN IP
$ventport = "3784"; //Change this to you'r Port
$offline = "<font color='#ff0000'>Offline</font>"; //Displays Offline Status
$online = "<font color='#009900'>Online"; //Displays Online Status
?>