Da ich bei mir PHP4 läuft, habe ich es mal ein wenig mit Standardschriften umgeprutscht

PHP-Code:
<?

if (!isset($_GET['uid']) OR (int)$_GET['uid'] <= 99 or (int)$_GET['uid'] > 999999){
die("Fehlerhafter Aufruf!");
}

if (!file_exists('dynamic_cache/picker/'.$_GET['uid'].'.png') || @filemtime('dynamic_cache/picker/'.$_GET['uid'].'.png') < time()-600){ 
    require_once('lib/functions.lib.php');
    db_connect();
    ob_start(); 
    $stat = mysql_fetch_assoc(mysql_query('SELECT k.kontostand,u.nickname FROM 
                           '.$db_prefix.'_kontodaten AS k
                           LEFT JOIN '.$db_prefix.'_userdaten AS u ON u.uid = k.uid
                     WHERE k.uid='.(INT)$_GET['uid'].' LIMIT 1'));
    if(!$stat['nickname'] AND !$stat['kontostand']){
        die("Falsche Werte");
    }

    //Ausgabe wird Bild
      header('Content-Type: image/png'); 
    $picker = ImageCreateFromPng('images/picker/picker.png');  
    $schriftfarbe = ImageColorAllocate($picker,0,0,0); 

//php 5
//    ImageTTFText($picker,12,0,5,13,$schriftfarbe,"css/trebucbd.ttf",$stat['nickname']); 
//    ImageTTFText($picker,8,0,5,26,$schriftfarbe,"css/COMIC.TTF","Guthaben: ".$stat['kontostand']);
//    ImageTTFText($picker,8,0,5,49,$schriftfarbe,"css/COMIC.TTF","www.Roadhorse.de");  

//php 4
    imagestring ($picker, 3, 2, 0, $stat['nickname'], $text_farbe);
    imagestring ($picker, 2, 2, 16, $stat['kontostand']." Lose", $text_farbe);
    imagestring ($picker, 2, 2, 32, "www.         .de", $text_farbe);

    ImagePng($picker);  
    ImageDestroy($picker);  
    //db schließen
    db_close();
    file_put_contents('dynamic_cache/picker/'.$_GET['uid'].'.png', ob_get_flush() );
}else{  
    //Ausgabe wird Bild
    header('Content-Type: image/png'); 
    readfile('dynamic_cache/picker/'.$_GET['uid'].'.png');
}  

?>
Das Problem ist momentan noch das er keine Bilder ablegt ?!?

grüsse

cw