el problema es que el texto que quiero insertarle en veces es muy largo y lo que quiero es que me lo corte y lo haga en dos lineas
Código PHP:
<?php
// Create a 300x100 image
$im = imagecreatefromjpeg('eventos/2038/thumbnails/miniDSC00004.JPG'); // Get a background
$red = imagecolorallocate($im, 0xFF, 0x00, 0x00);
$black = imagecolorallocate($im, 0x00, 0x00, 0x00);
// Make the background red
// Path to our ttf font file
$font_file = 'include/GEO231H.TTF';
$texto = 'XV de Mariela /n Villarruel VIdrio';
// Draw the text 'PHP Manual' using font size 13
imagefttext($im, 14, 0, 12, 157, $black, $font_file, $texto);
imagefttext($im, 14, 0, 14, 155, $red, $font_file, $texto);
// Output image to the browser
header('Content-Type: image/png');
imagepng($im);
imagedestroy($im);
?>
lo de bd no es problema.. mi problema es con el salto de linea...
Muchas gracias anticipadas