Login   Register  
PHP Classes
elePHPant
Icontem

File: test.wordart.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Huda M Elmatsani  >  VeriWord  >  test.wordart.php  >  Download  
File: test.wordart.php
Role: Example script
Content type: text/plain
Description: test wordart class
Class: VeriWord
A PHP CAPTCHA System
Author: By
Last change:
Date: 2004-10-27 00:21
Size: 1,092 bytes
 

Contents

Class file image Download
<?php
######
## VeriWord
## A PHP CAPTCHA System
## Version 2
#######
## Author: Huda M Elmatsani
## Email:     justhuda ## netscape ## net
##
## 25/07/2004
#######
## Copyright (c) 2004 Huda M Elmatsani All rights reserved.
## This program is free for any purpose use.
########
##
## PACKAGE OF VERIWORD V2
## sample.php
## image.veriword.php
## class.veriword.php
## class.captcha.php
## class.noisegenerator.php
## class.wordgenerator.php
## class.wordart.php
## class.filefinder.php
## class.configreader.php
## veriword.ini
##
#######
include("class.wordgenerator.php");
include(
"class.wordart.php");


$word = new DictionaryWord;
$word->setDictionary(("words/words.txt"));
$word->setLength(5);
$word->pickWord();
$theword $word->getWord();

$imgword = new WordArt(120,40);
$imgword->setFontDirectory('fonts/');
$imgword->setWord($theword);
$imgword->setTextAngle(5);
$imgword->setFontColor('#000000');
$imgword->drawText();
$imgword->applyFilter("Wavy");
$im $imgword->getWordArt();
header("Content-type: image/jpeg");
imagejpeg($im);
?>