estoy haciendo un sistema para comprobar el estado de un servidor.
(http://www.roftorium.com/status.php)
Como podeis ver funciona perfectamente, pero me gustaría añadirle la variable get para que en función de lo que elija
el usuario pueda cambiar la imágen ejemplo:
http://www.roftorium.com/image.php?roftorium.com:80&style=1
&style=2, &style=3
Cada uno con una imagen ON y OFF diferente
image.php:
<?php
header('Content-type: image/gif');
error_reporting(0);
$var=explode('@',$_SERVER['QUERY_STRING']);
$status=@fsockopen($var[0],$var[1]);
if(!$status)
readfile('offline.gif');
else
readfile('online.gif');
}
?>
Gracias
