A little addon for the previous php script:
.htaccess
Demo:
As attachment the background I used for this
Regards, SJB
<?php
php
// name of the jpg background (any size you want, mine is 400x100)
$background = "lfsstatus.jpg";
$im = imagecreatefromjpeg($background);
// edit to change textcolor e.g. black: 0, 0, 0 white: 255, 255, 255 blue: 0, 0, 255
$textcolor = imagecolorallocate($im, 0, 0, 0);
// imagestring($im, fontsize (1-5), position x, position y, text, color )
imagestring($im, 5, 7, 5, $host, $textcolor);
imagestring($im, 3, 7, 25, "Mode: ".$mode, $textcolor);
imagestring($im, 3, 7, 40, "Track: ".$track, $textcolor);
imagestring($im, 3, 7, 55, "Cars: ".$cars, $textcolor);
imagestring($im, 5, 7, 75, "Connections: ".$conns, $textcolor);
header('Content-Type: image/jpeg');
imagejpeg($im);
imagedestroy($im);
?>
<?php
RewriteEngine on
RewriteRule status.jpg$ status.php
?>
As attachment the background I used for this
Regards, SJB