Trying to use a PHP script with Imagettftext, this works fine on my windows setup at home. However, this fails to work on my host. I thought i found the answer elsewhere and contacted the host asking them to fix it, very quickly they did exactly as i asked but it still fails to work. Script produces no errors, other image generation works except the text generation.
Thinking it maybe something to do with the configuration
PHP Version 4.3.10
System Linux 2.4.21-27.0.1.ELsmp #1
Configure Command './configure'
'--enable-gd-native-ttf' '--with-png' '--with-ttf' '--with-jpeg'
'--with-freetype' '--with-xpm' '--with-xml' '--enable-bcmath'
'--enable-calendar' '--with-curl' '--enable-ftp' '--with-gd'
'--with-xpm-dir=/usr/X11R6' '--with-imap' '--with-imap-ssl'
'--with-kerberos' '--with-mcrypt' '--enable-magic-quotes'
'--with-mysql' '--enable-discard-path' '--with-pear' '--enable-sockets'
'--enable-track-vars' '--enable-versioning' '--with-zlib'
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with TTF library
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
From what i’ve read elsewhere i think the problem is related the order of the config commands or the “GD FreeType Linkage with TTF library”
Anyone know for certain what the problem is so i can pass this on to my host.
i upload the font file into local directory - without it, there is an error. Code for this is large, without it all i'll just get more questions, so a snippet wont do, and as i'm 100% sure the code is fine its not worth it.
I'm sure its the server config, until i contacted the host they never had several parameters needed such as
They've since added these but still something is not right.