- Server Status: <? Php $ open = fsockopen ('localhost', 29200, $ ERRNO, $ errstr, .1);
- if (! $ open) {
- echo '<b> <font color=green> Online </ font> </ b>';
- Else {}
- echo '<b> <font color=red> Offline </ font> </ b>';
- }?> <br>
Server Status: <?php $open = @fsockopen('localhost', '29200', $ERRNO, $ERRSTR, .1);
if(!$open) {
echo '<b><font color=green>Online</font></b>';
} else {
echo '<b><font color=red>Offline</font></b>';
} ?><br>
I am using this code but it does not update the page saying this is online or offline..