<?php
//URL to file.
$data1 = 'http://66.232.193.178/sampserver/scriptfiles/Onlinetext.txt';
$data2 = file($data1);
foreach($data2 as $key => $value) {
$data2[$key] = substr($data2[$key],stripos($data2[$key],"=")+1);
$data2[$key] = str_replace(array("\r","\n"),"",$data2[$key]);
}
//Your base image.
$gd = imagecreatefromjpeg("online.jpg");
//some colors..
$white = imagecolorallocate($gd, 255, 255, 255);
$black = imagecolorallocate($gd, 1, 1, 1);
$green = imagecolorallocate($gd, 0, 0, 255);
$red = imagecolorallocate($gd, 255, 0, 0);
//Data to show.
imagestring($gd, 30, 195, 10, "ECLIPSE ROLEPLAY", $black);
imagestring($gd, 30, 195, 30, "www.rmdt-clan.com", $black);
imagestring($gd, 5, 5, 30, 'Players Online:' . $data2[0], $black);
imagestring($gd, 5, 375, 30, 'Most Online:' . $data2[1], $black);
imagestring($gd, 5, 130, 50, 'Total Players Connected:' . $data2[2], $black);
imagestring($gd, 5, 130, 65, 'Server Online Time(Seconds):' . $data2[3], $black);
imagestring($gd, 5, 130, 85, 'Server Online Time(Minutes):' . $data2[4], $black);
imagestring($gd, 5, 130, 105, 'Server Online Time(Hours):' . $data2[5], $black);
imagestring($gd, 5, 130, 125, 'Server Online Time(Days):' . $data2[6], $black);
imagestring($gd, 5, 5, 145, 'Players Kicked:' . $data2[7], $black);
imagestring($gd, 5, 350, 145, 'Players Banned:' . $data2[8], $black);
imagestring($gd, 5, 5, 165, 'Script Version:' . $data2[9], $black);
imagestring($gd, 5, 240, 165, "ServerIP: 66.232.193.178:7779", $black);
header('Content-Type: image/jpeg');
imagejpeg($gd);
?>
How can i make that PHP script Refresh Itself and Also how can i make the www.rmdt-clan.com url clickable
Thanks to all of you web developers for making this happen