PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Mateo   PHP Captcha Image Generator   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Captcha Image Generator
Generate image to validate real users with CAPTCHA
Author: By
Last change:
Date: 1 year ago
Size: 322 bytes
 

Contents

Class file image Download
<?php

require_once 'captcha.php';

$captcha = new Captcha;
$captcha->draw(rand(900, 1000), rand(400, 500), rand(60, 80)); // Crea el texto, y dibuja la imagen
$data = $captcha->showDatas(); // Asigna los datos de la imagen a un array
$captcha->showImg(); // Muestra la imagen

unlink($data['route']); // Elimina la imagen