justuptime.com - monitor your servers & websites

Need php help on Image..

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

They have: 21 posts

Joined: Nov 2006

Hello

Lets say i create an image using php, with the dimentions 250x100px. How can i then write a string onto that image, which will break into new lines, to fit onto it? Using the imagestring() function, it seems to just continue, past the edge of the image.

Thanks for your time

Get deals or books when bored

pr0gr4mm3r's picture
ModeratorSponsor

He has: 575 posts

Joined: Sep 2006

Use the wordwrap() function.

Sponsor

They have: 140 posts

Joined: Apr 2006