Here is all of it
PHP Code:
<?php
header("Content-type: image/png");
$background = imagecreatefrompng("back.png");
$green = imagecolorallocate($background, 65, 134, 57);
$red = imagecolorallocate($background, 171, 20, 20);
// Server IP
imagettftext($background,10,0,92,63,$green,"arial.ttf","64.92.165.74");
//Server IP
ini_set('display_errors','0');
$fp = fsockopen(64.92.165.74, 80,$errno,$errstr, 4);
if (!$fp){
$data = $background,10,0,91,63,$red,"arial.ttf","Down";
} else {
$data = $background,10,0,91,63,$green,"arial.ttf","UP";
}
return $data;
fclose($fp);
imagettftext($data);
imagepng($background);
imagedestroy($background);
?>
The like DNS: and everything like that is there on the image built in....i just have to copy that status code and change the positon and port i think if I can get that to work.