Witajcie poniższy skrypt działa na localhoscie, jednak na serwerze w home.pl już nie. Widzicie gdzieś błąd?
<?php
header("Content-type: image/png"); header ("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0"); include_once("./funkcje/Zapytanie.php");
$id = (int)$_GET['id'];
$zap = Zapytanie("SELECT * FROM {{tabela}} where `id` = '".$id."'", "slowo", true);
$font = 'ariblk.TTF';
$button=imagecreatetruecolor(150, 25);
$textColor = imagecolorallocate($button, 255, 204, 0);
imagealphablending($button, false);
$trans = imagecolorallocatealpha($button, 128, 128, 128,127);
imagefill($button, 0, 0, $trans);
imagesavealpha($button, true);
imagealphablending($button, true);
imagettftext($button, 15, 0, 0,20, $textColor , $font, $zap['slowo']);
imagepng($button);
imagedestroy($button);
?>