note 63351 added to function.imagestring

From: Date: Mon, 20 Mar 2006 23:32:43 +0000
Subject: note 63351 added to function.imagestring
Groups: php.notes 
Request: Send a blank email to php-notes+get-106127@lists.php.net to get a copy of this message
Basic "human check" script by png image creation in php : <?php $code = rand(1000,9999); header("Content-type: image/png"); $image = imagecreatefrompng("bg.png"); // Background image $color = imagecolorallocate($image,50,50,50); // rgb(50,50,50) imagestring($image,5, 1, 1, "$code",$color); // Text setting imagepng($image); ?> $code might be used for validation in some text input. [Arash Moslehi] ---- Server IP: 217.24.152.9 Probable Submitter: 85.185.3.21 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.imagestring.php Edit -- http://master.php.net/note/edit/63351 Del: integrated -- http://master.php.net/note/delete/63351/integrated Del: useless -- http://master.php.net/note/delete/63351/useless Del: bad code -- http://master.php.net/note/delete/63351/bad+code Del: spam -- http://master.php.net/note/delete/63351/spam Del: non-english -- http://master.php.net/note/delete/63351/non-english Del: in docs -- http://master.php.net/note/delete/63351/in+docs Del: other reasons-- http://master.php.net/note/delete/63351 Reject -- http://master.php.net/note/reject/63351 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#106127) next »