[nycphp-talk] GD Lib problem?
Dan Cech
dcech at phpwerx.net
Fri Mar 12 11:51:20 EST 2004
Jeff Siegel wrote:
> I thought of that but then it would seem to kinda defeat the purpose of
> a captcha since one could write some simple script to just read the html
> and figure out the sequence of numbers/letters based on the filenames.
I think the intent was to use the imagecopy function to build your basic
text string out of pre-made png images, then apply whatever obfuscation
technique to the resulting montage, and output a single image.
It could work quite well, especially if you had a large pool of pre-made
letters to draw from.
Dan
> Another thought was to have these files in some non-doc root directory
> and then copy them - using randomly generated new names - as needed and
> then removing them when no longer needed...but I'm not nuts over that idea.
>
> In the interim, I'm using the GD lib's built-in bitmap fonts...not great
> looking but okay for now.
>
> Jeff
> ------------
>
> bpang at bpang.com wrote:
>
>> create individual images of each char and then string those together?
>>
>> A.png
>> B.png
>> C.png
>> etc...
>>
>>
>>
>>> I'm trying to create Captchas and it seems the hosting company does not
>>> have Freetype support enabled. The following comes from the phpinfo
>>> function:
>>>
>>> PHP 4.3.2 on FreeBSD
>>>
>>> GD Support enabled
>>> GD Version bundled (2.0.15 compatible)
>>> GIF Read Support enabled
>>> JPG Support enabled
>>> PNG Support enabled
>>> WBMP Support enabled
>>> XBM Support enabled
>>>
>>> Just wondering what kind of workaround there might be...or if there
>>> isn't any.
>>>
>>> Jeff Siegel
>>>
>>> _______________________________________________
>>> talk mailing list
>>> talk at lists.nyphp.org
>>> http://lists.nyphp.org/mailman/listinfo/talk
>>>
>>
>>
>> _______________________________________________
>> talk mailing list
>> talk at lists.nyphp.org
>> http://lists.nyphp.org/mailman/listinfo/talk
>>
>
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org
> http://lists.nyphp.org/mailman/listinfo/talk
>
More information about the talk
mailing list