PHP Classes

File: examples/captcha/captcha_image.php

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil   PHP Skeleton Framework   examples/captcha/captcha_image.php   Download  
File: examples/captcha/captcha_image.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Skeleton Framework
Extensive Web application development framework
Author: By
Last change:
Date: 8 years ago
Size: 569 bytes
 

Contents

Class file image Download
<?php
include 'config.php';
include
dirname(__FILE__) . '/../../A/autoload.php';
#include 'A/Session.php';
#include 'A/Rule/Captcha.php';

$session = new A_Session();
$session->start();
#echo "session_id=" . session_id() . '<br/>';

$captcha = new A_Rule_Captcha('captcha', 'CAPTCHA', null, $session, null);
$captcha->generateCode(5);

#dump($captcha);
#dump($session);
#echo "<br/>Code=" . $captcha->getCode();
#exit;

$image = new A_Rule_Captcha_Image($captcha);
#dump($session);
#echo "<br/>Code=" . $captcha->getCode();
#exit;

$image->out();