Gossamer Forum
Home : General : Perl Programming :

anti flood module

Quote Reply
anti flood module
I am tesing the ImagePwd from webtools.
below sample code shows a pic with numbers on it.
however how to print out exactly the numbers first and then a pic?
in others words, how to get the value of numbers?
i have tried quite few times with no luck.
could any one help me on this issue?
THanks in advance.

#!/usr/local/bin/perl
use ImagePwd;
##webtools 127
$obj = ImagePwd->new(len=>5, height=>60, width=>280, fixed=>1, rot=>10,quality=>128, cell=>0, f_min=>45);
$obj->fonts(['G:/winnt/FONTS/BNHRDMOB.TTF','G:/winnt/FONTS/ariblk.TTF',
'G:/winnt/FONTS/GOUDHNDN.TTF','G:/winnt/FONTS/KABELU.TTF',
'G:/winnt/FONTS/BOOKOSBI.TTF','G:/winnt/FONTS/FUTURABI.TTF',
]);
# $obj->fonts(['kai.ttf']); # And more fonts for Unix/Linux users
$img = $obj->ImagePassword();
$| = 1;

binmode STDOUT;
print "Content-type: image/png\n\n";
print $img->Write('png:-');
Subject Author Views Date
Thread anti flood module courierb 7484 Sep 11, 2004, 6:06 PM
Post Re: [courierb] anti flood module
courierb 7219 Sep 11, 2004, 6:08 PM
Thread Re: [courierb] anti flood module
courierb 7221 Sep 12, 2004, 6:04 AM
Post Re: [courierb] anti flood module
Andy 7207 Sep 13, 2004, 2:01 AM
Thread Re: [courierb] anti flood module
Mahir 7122 Nov 10, 2004, 2:54 AM
Post Re: [Mahir] anti flood module
perlsite 6899 Apr 26, 2005, 5:16 PM