Znalazlem inny fajny skrypcik ale jest maly problem bo on wyswietla satus serwera graficznie a mi wystarczy status tekstowy, probowalem juz na kilka sposobow go przerobbic ale mi cos nie wychodzi.
<?php
//Location of the live or dead server images
//Please change to your server specifications
$live = \"online.PNG\";
$dead = \"offline.PNG\";
//The status checking script
//meddle at your own risk!
//check for port number, default is 80
$link = $_GET['link'].\":\";
list
($addr,$port)= explode (':',\"$s_link\"); $port = 80;
}
//Test the server connection
$churl = @fsockopen(server
($addr), $port, $errno, $errstr, 15
); if (!$churl){
//echo $errstr;
header(\"Location: $dead\"); }
else {
header(\"Location: $live\"); }
function server($addr){
if(strstr($addr,\"/\")){$addr = substr($addr, 0, strpos($addr, \"/\"));} return $addr;
}
?>
Sprobowal by ktos przerobic ten skrypt tak aby wyswietlal status tekstowy np. Online, Offline ?
do skryptu odwoluje sie za pomoca linku. tenskrypt.php?link=o2.pl