• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

a website server status

Junior Spellweaver
Joined
Nov 8, 2008
Messages
171
Reaction score
0
hi

any 1 got a post to make a server status for my website??


cause they always tell me:is your server on??

so if i got a server status that automaticly works then it would be awsome!!
 
Experienced Elementalist
Joined
Jul 27, 2008
Messages
222
Reaction score
9
Here you go

PHP:
<?php $srvip = "YourIP";
$srvport = "5816";?>
<td align="left">Server: 
   
<?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);
} ?></td>
 
Junior Spellweaver
Joined
Nov 8, 2008
Messages
171
Reaction score
0
thx but

it doesnt matter what ip i fill in he never reconize it always say page not found

what i suppose to do?
 
Experienced Elementalist
Joined
Jul 27, 2008
Messages
222
Reaction score
9
Could you show me what are you tring to create ?