PHP Classes

File: sample_img.php

Recommend this page to a friend!
  Classes of Josť M. Carnero  >  Captchazo  >  sample_img.php  >  Download  
File: sample_img.php
Role: Example script
Content type: text/plain
Description: Use as image
Class: Captchazo
Validate users with image or text based CAPTCHA
Author: By
Last change:
Date: 9 years ago
Size: 534 bytes


Class file image Download
<?php session_start(); ?>
include(''); ?>

$oCaptcha = captchazo_sel('texto');

$oCaptcha->sDirectorio = false;
$oCaptcha->aCaracteres = array('a','b','c','d','e','f','g','h','i','j','k','l','m','n','p','q','r','s','t','u','v','w','x','y','z',1,2,3,4,5,6,7,8,9,0,'!','?','@','#','+','-','*','/','=','$','%','&');
$oCaptcha->iAncho = 100;
$oCaptcha->iAlto = 50;

$_SESSION['captchazo'] = $oCaptcha->sRespuesta; //texto que ha de responder el usuario

For more information send a message to info at phpclasses dot org.