I am trying to create an image with text over the top. I am not sure how long the text will be and would like make a script that checks the the length and then creates a new image that the text will fit in.
Any help would be appreciated.
thanks,
D
I don't know how yo wanna display a image with php, but maybe you can do this??:
<?php $string = "Sjoerd rulez, blah, blah, blah"; $string_length = strlen($string); echo "<img src=\"path\" size=\"".$string_length."\">"; ?>
I am going to be using "ImageCreate", which needs a height and width value. I want the width value to equal the string length plus 6.
-D