| Firman Wandayandi 2007-07-26, 7:02 pm |
| On 7/26/07, Alexander Naumann <mail@herrnaumann.de> wrote:
>
>
> -----Urspr=FCngliche Nachricht-----
> Von: Firman Wandayandi [mailto:firmanw@gmail.com]
> Gesendet: Donnerstag, 26. Juli 2007 13:09
> An: mail@herrnaumann.de
> Cc: pear-general@lists.php.net
> Betreff: Re: [PEAR] Problem with CAPTCHA
>
> On 7/26/07, Alexander Naumann <mail@herrnaumann.de> wrote:
>
> Any error message on the page? Usually it's about font problem, make sure
> that font is available or just change it with a font you have in your box=
..
>
> --
> Firman Wandayandi <http://firmanw.org/>
>
>
> I used the example-script in CAPTCHA.php and checked with file_exists() i=
f
> the ttf-file was accessible. Ok.
>
Okay, lets see a provided example right on the "CAPTCHA_test.php" line 42-4=
7:
-- snip --
// Set CAPTCHA image options (font must exist!)
$imageOptions =3D array(
'font_size' =3D> 24,
'font_path' =3D> './',
'font_file' =3D> 'COUR.TTF'
);
-- /snip --
"font_path" is a directory of font file located and "font_file" is a
filename (without directory) of font file.
'font_file' =3D> 'C:/something/font.ttf' doesn't works, should be
something like this:
'font_path' =3D> 'C:/something',
'font_file' =3D> 'font.ttf'
Did you right on here?
Also please send a reply to pear-general@lists.php.net too so anyone
can read this thread.
> The error message:
>
>
> Thanks
>
>
>
--=20
Firman Wandayandi <http://firmanw.org/>
|