Question about GD library


Posted on 16th Feb 2014 07:03 pm by admin

I am trying to make an image that shows a random quote from my database.


However I want the quote to do 2 things.
Did you know?Explore Trending and Topic pages for more stories like this.
1. It needs to word wrap so that it stays on the image
2. It needs to be the biggest font which still makes it fit vertically.

So I need to know how to word-wrap in GD and how to vertically check the size of that word-wrapped text.

Everything else I can figure out but I can't seem to find the right functions to achieve those
No comments posted yet

Your Answer:

Login to answer
326 Like 37 Dislike
Previous forums Next forums
Other forums

Wierd echo error?
Hi, i got the most wierd php error ever and i don't know why..
Code: echo "<t

form variables from database help.
Hi all,

I would like to have a form that gives you options based on the results of an mysql q

Problem with a select distinct
I have a problema with a select distinct, I have the next sql:

select distinct a,b,c,d fr

Help on code output
My CODE:

Code: [Select] echo "<phone>".$line["phone"].&qu

Error Messaging not working
I changed the way my form tells the user of an error. But I can't seem to get it to work properly.

Alternate messaging
I have 4 strings in MySQL db1

$string1 : Hello
$string2 : Hi
$string3 : Great
$strin

Need help with unexpected T-STRING error
I'm a newbie and I'm still learning PHP. However this error has me stumped. I've googled, searched t

Multiple websites question.
Hi, does php have any functionality that enables a programmer to extract information from a website

Slow data retrieval which requires improvement..please help
I am working on a Help Desk Ticketing system and have a page called MY TICKETS which shows all ticke

Deleting pointers froms vector?
Hi. I have a vector filled with pointers and I want to delete the pointers. I could do a loop and do

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash