Solved

imagettftext function

Posted on 2009-05-06
2
305 Views
Last Modified: 2013-12-13
Hello, I'm trying to use imagettftext function in my script.
But it returns Call to undefined function imagettftext() .

I run phpinfo() and my PHP version is 5.2.6 on SentOS and have "--with-gd' " on cinfgure command section and on GD section it says:

GD Support  enabled  
GD Version  bundled (2.0.34 compatible)  
GIF Read Support  enabled  
GIF Create Support  enabled  
JPG Support  enabled  
PNG Support  enabled  
WBMP Support  enabled  
XPM Support  enabled  
XBM Support  enabled  

Someone sasy that I will need free-type in order to make the function work.
But I'm not expert of Linux, so I need an accurarte answer before I install something on my server.

What exactly do I need to make the function work?
Please some one adivse.
Thank you.

0
Comment
Question by:eb110k
2 Comments
 
LVL 4

Accepted Solution

by:
aconrad earned 500 total points
ID: 24321717
http://www.php.net/manual/en/function.imagettftext.php
Note: This function requires both the GD library and the » FreeType library.

Yes, you need free-type.
0
 

Author Closing Comment

by:eb110k
ID: 31578836
Thank you for your advise.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now