PDA

View Full Version : How to get a status checker



travis1
June 25th, 2010, 15:25
Hi i was wondering how i could get a status checker for my forums

Dan`
June 30th, 2010, 04:03
travis is your server still online

Faab234
June 30th, 2010, 06:55
Create your own.

Joe
June 30th, 2010, 06:57
wrong section buddy :p and you i am forewarning you you cannot get a status checker if your fsockets aren't open or those ports are not opened on your host.

Codeusa
June 30th, 2010, 08:23
What like this?

Only the registered members can see the link.



<?php
$hosts = array('codeusa540.no-ip.biz:5555','world2:43594','Only the registered members can see the link.','ww w.msn.com:80','Only the registered members can see the link.');
echo '<table cellpadding="2" border="1">';
echo '<tr><td><strong>Host</strong></td><td><strong>Port</strong></td><td><strong>Status</strong></td></tr>';
foreach($hosts as $hostNumber => $host){
$hostValues = explode(':',$host);
$check = @fsockopen($hostValues[0],$hostValues[1],$errorNumber,$errorMessage,1);
if($check){
echo '<tr><td>'.$hostValues[0].'</td><td>'.$hostValues[1].'</td><td>Online</td></tr>';
} else {
echo '<tr><td>'.$hostValues[0].'</td><td>'.$hostValues[1].'</td><td>Offline</td></tr>';
}
}
?>