showCodeImage

Description

Creates and displays a lovely image for the CAPTCHA.

Syntax

bool showCodeImage (string $code)



Parameter $code

Expected type: String
Description: The verification code



Return value

Expected type: Boolean
Description: Returns false if something goes wrong


Notes

  • This function requires GD
  • Uses random fonts from the fonts sub-directory of the default theme directory
  • Outputs the code as a single image rather than outputting a separate image for each character
Advertisement: