note 60034 rejected from function.imagestring by nlopess

From: Date: Fri, 23 Dec 2005 19:04:02 +0000
Subject: note 60034 rejected from function.imagestring by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-100631@lists.php.net to get a copy of this message
Note Submitter: serge at essetee dot be ---- What's wrong with this code ? <?php header('Content-type: image/png'); $myip=$_SERVER["REMOTE_ADDR"]; $tekst="Uw ip = $myip"; // tekst die we tonen op het plaatje $plaatje = imagecreatefrompng("topbgfill.png"); $kleur = imagecolorallocate($plaatje, 255, 255, 255); $grootte = "14"; // font grootte $rotatie = "0"; //rotatie $linksuitljnen = "20"; // tekst op 20 pixels van de linkerrand $centreren = "48"; // tekst in het midden van het plaatje (hoogte = 97) $font = "verdanab.ttf"; // het font type imagettftext($plaatje, $grootte, $rotatie, $linksuitlijnen, $centreren, $kleur, $font, $tekst); imagepng($plaatje); imagedestroy($plaatje); ?> On my desktop it works fine under php 4.4.0. When I upload my script to my webhoster, it doesn't work. My webhoster is using php 5.0.4. The image is created, but with no text in it.

« previous php.notes (#100631) next »