I'm having the same issue with another script - how can I apply your solution to this:
<?php
session_start();
$id=isset($_GET['id']) ? $_GET['id'] : 0;
$server_name=isset($_GET['server_name']) ? $_GET['server_name'] : 0;
$ip=isset($_GET['ip']) ? $_GET['ip'] : 0;
$cur_players=isset($_GET['cur_players']) ? $_GET['cur_players'] : 0;
$max_players=isset($_GET['max_players']) ? $_GET['max_players'] : 0;
$vote_count=isset($_GET['vote_count']) ? $_GET['vote_count'] : 0;
$uptime=isset($_GET['uptime']) ? $_GET['uptime'] : 0;
$pingstatus=isset($_GET['pingstatus']) ? $_GET['pingstatus'] : 0;
$players=$cur_players." / ".$max_players;
// Create image instances
$src = imagecreatefromjpeg('../images/banners/server_banner.jpg');
$dest = imagecreatetruecolor(450, 100);
// Copy
imagecopy($dest, $src, 0, 0, 0, 0, 450, 100);
// Create some colors
$heading_color = imagecolorallocate($dest, 255, 255, 255);
$data_color = imagecolorallocate($dest, 0, 0, 0);
//imagefilledrectangle($dest, 0, 0, 399, 29, $white);
// The text to draw
$text1 = 'Server: ';
$text2 = 'IP: ';
$text3 = 'Players: ';
$text4 = 'Votes: ';
$text5 = 'Uptime: ';
$text6 = 'Status: ';
// Replace path by your own font path
//$font = 'css/fonts/MINECRAFT_Z2FONT.TTF';
$font = '../css/fonts/merriweather-regular-webfont.ttf';
// Add some shadow to the text
//imagettftext($dest, 12, 0, 11, 21, $grey, $font, $text);
// Add the text
imagettftext($dest, 10, 0, 20, 22, $heading_color, $font, $text1);
imagettftext($dest, 10, 0, 20, 44, $heading_color, $font, $text2);
imagettftext($dest, 10, 0, 20, 65, $heading_color, $font, $text3);
imagettftext($dest, 10, 0, 20, 86, $heading_color, $font, $text6);
imagettftext($dest, 10, 0, 260, 65, $heading_color, $font, $text4);
imagettftext($dest, 10, 0, 260, 85, $heading_color, $font, $text5);
imagettftext($dest, 10, 0, 78, 22, $data_color, $font, $server_name);
imagettftext($dest, 10, 0, 78, 44, $data_color, $font, $ip);
imagettftext($dest, 10, 0, 78, 65, $data_color, $font, $players);
imagettftext($dest, 10, 0, 78, 86, $data_color, $font, $pingstatus);
imagettftext($dest, 10, 0, 320, 65, $data_color, $font, $vote_count);
imagettftext($dest, 10, 0, 320, 86, $data_color, $font, $uptime."%");
//imagettftext($dest, 10, 0, 410, 83, $data_color, $font, "%");
// Output and free from memory
header('Content-Type: image/jpeg');
// Save the image
imagejpeg($dest, '../images/banners/'.$id.'.jpg',100);
imagejpeg($dest);
//destroy memory
imagedestroy($dest);
imagedestroy($src);
?>
Thanks!