Login   Register  
PHP Classes
elePHPant
Icontem

File: examples/exampleCaptcha.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of anggiajuang patria  >  Ciul Images  >  examples/exampleCaptcha.php  >  Download  
File: examples/exampleCaptcha.php
Role: Example script
Content type: text/plain
Description: Example for using captcha class
Class: Ciul Images
Generate images for CAPTCHA validation
Author: By
Last change: move to folder examples
Date: 8 years ago
Size: 267 bytes
 

Contents

Class file image Download
<?php
error_reporting
(E_ALL&E_NOTICE);
require_once 
'../CiulCaptcha.php';

$words= array('Ciul''Ulfa''Pa2x''Beat');
shuffle($words);
$gbr= new CiulCaptcha();
$gbr->addText($words[0]);
header('Content-type: image/jpeg');
ImageJpeg($gbr->getImage());
?>