메소드 | 설명 | |
---|---|---|
checkCaptcha ( $captcha ) : boolean | Checks if the entered captcha is the same like the one from the rendered image which has been saved in session | |
generateAndShowCaptcha ( ) | Generates the captcha, "returns" a real image, this is why there is header('Content-type: image/jpeg') Note: This is a very special method, as this is echoes out binary data. |
public static checkCaptcha ( $captcha ) : boolean | ||
$captcha | string The captcha characters | |
리턴 | boolean | success of captcha check |
public static generateAndShowCaptcha ( ) |