murli800 Posted April 21, 2011 Share Posted April 21, 2011 <?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ $width=120; $height=60; $image= imagecreate($width, $height); $txt=substr(md5(rand()),0,; $white= imagecolorallocate($image, 255, 255, 255); $black= imagecolorallocate($image, 0, 0, 0); $red= imagecolorallocate($image, 255, 0, 0); $new= imagecolorallocate($image, 128, 128, 255); //imagefilledrectangle($image, 10, 10, 110, 50, $white); imagefilledrectangle($image, 20, 20, $width-20, $height-20, $new); imagestring($image, 40, 27, 22, $txt, $black); header("content-type:image/jpeg"); imagejpeg($image); imagedestroy($image); ?> Link to comment https://forums.phpfreaks.com/topic/234330-how-to-make-captcha-more-good-looking/ Share on other sites More sharing options...
Maq Posted April 22, 2011 Share Posted April 22, 2011 1) DO NOT double post. 2) Use . Link to comment https://forums.phpfreaks.com/topic/234330-how-to-make-captcha-more-good-looking/#findComment-1204974 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.