Help document case output garbled request teach
This is an example from a help document, but why is the output garbled?
PHP Code
Output Result:
Warning:imagettftext () [Function.imagettftext]: Invalid font filename in F:\wamp\www\bkqs\imageCode\file.php on line 9
?? Jfif?>creator:gd-jpeg v1.0 (using IJG JPEG v62), default quality? C $. ' ", # (7), 01444 ' 9=82<.342? C 2!! 22222222222222222222222222222222222222222222222222??????}! 1AQa "Q2 nobody? #B绷R佯 $3br? %& ' () *456789:cdefghijstuvwxyzcdefghijstuvwxyz 儎 and 噲 墛 patty pledge Lai 槞 kill ¥ウж┆ bo Dou belly Chongmei brand overseas Shang the swelling manipulate noting repentance bromine Xiao Trichosanthes stubborn Deinagkistrodon rge ray??? W!1aqaq "2? b chickens stretched #3R? br?$4?? ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( (???
------Solution--------------------
Is the error not obvious?
Warning:imagettftext () [Function.imagettftext]: Invalid font filename in F:\wamp\www\bkqs\imageCode\file.php on line 9
------Solution--------------------
Invalid font filename
The font file location is incorrect.
Try this.
Imagettftext ($im, 0, ten, $black, DirName (__file__). "/.. /path/arial.ttf ",