Hello, I'm new here, and I would like to ask a quick question.
I am using imagettftext() in order to make a simple drawing script, that will draw some simple text on an image. I have no problems with this when running the script on my PC using WAMP, however as soon as I transfer the script to my webserver I get the errors:
Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/infinity/public_html/diamonds/imgaddtest.php on line 10
Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/infinity/public_html/diamonds/imgaddtest.php on line 11
However, my fontfile(04B_09_.tff) is in the same folder as the script. I have tried using:
<?php
putenv('GDFONTPATH=' . realpath('.'));
$font = '04B_09_';
?>
Aswell, as recommended in the PHP Documentation, and I've tried some other methods on google, and it still does not function.
I am running php 5.2.9.
Thanks,
CodeDemon