rendered paste body<?php
header ("Content-type: image/png");
//$im = imagecreatefrompng("playersonline.png");
$im = @ImageCreateFromPNG ("playersonline.png");
if(!$im) {
$img_handle = ImageCreate (200, 20) or die ("Cannot Create image");
$back_color = ImageColorAllocate ($img_handle, 0, 10, 10);
$txt_color = ImageColorAllocate ($img_handle, 235, 235, 51);
$myFile = "online.txt";
$fh = fopen($myFile, 'r');
$theData = fgets($fh);
fclose($fh);
ImageString ($img_handle, 10, 25, 5, "Players Online: $theData", $txt_color);
ImagePng ($img_handle); }
Else {
echo "Image is Found"; }
?>