note 55006 rejected from function.imagestring by betz

From: Date: Fri, 22 Jul 2005 10:55:38 +0000
Subject: note 55006 rejected from function.imagestring by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-92294@lists.php.net to get a copy of this message
Note Submitter: ola dot nate at electripoint dot com ---- Hmm ok the follwing will show someones ip adress in a picture <?php $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); header ("Content-type: image/jpg"); $string = "$hostname"; $font = 50; $width = ImageFontWidth($font) * strlen($string); $height = ImageFontHeight($font); $im = @imagecreate ($width,$height); $background_color = imagecolorallocate ($im, 0, 255, 255); //white background $text_color = imagecolorallocate ($im, 0, 0,0);//black text imagestring ($im, $font, 0, 0, $string, $text_color); imagejpeg ($im); ?> But what i want is to be able to input a simple page break after $hostname so i can add more variables to the picture there and so on ...

« previous php.notes (#92294) next »