Well, step one is generating the random string (of course)
Next, you use the image functions (requiring the GD library) to create an image (imagecreate)
Then draw in the text string - there is a function for this (imagestring) The font you use depends on what font libraries are supported.
Next, draw in some random stuff - such as (horizontal/vertical) lines at
various random coordinates (the imageline function)
The final step is to output the image - jpg is probably safest, though png should be fine since you are unlikely to be using transparency (imagejpeg or imagepng)













How do you create the images that generate random characters that the user must type in before registering to a website?
Does anyone know of a tutorial on this?
Latest phpBB2 Styles: [What Is Real!?] [Avalanche]