![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
19/02/2006, 12:54
|
![Avatar de Mickel](http://static.forosdelweb.com/customavatars/avatar20289_2.gif) | | | Fecha de Ingreso: mayo-2002 Ubicación: Lima, Peru
Mensajes: 4.619
Antigüedad: 22 años, 8 meses Puntos: 7 | |
Con este codigo sabrias si tienes configuradas las TTF en tu PHP:
<?php
// Change this defines to where Your fonts are stored
DEFINE("TTF_DIR","/usr/X11R6/lib/X11/fonts/truetype/");
// Change this define to a font file that You know that You have
DEFINE("TTF_FONTFILE","arial.ttf");
// Text to display
DEFINE("TTF_TEXT","Hello World!");
$im = imagecreatetruecolor (400, 100);
$white = imagecolorallocate ($im, 255, 255, 255);
$black = imagecolorallocate ($im, 0, 0, 0);
imagefilledrectangle($im,0,0,399,99,$white);
imagettftext ($im, 30, 0, 10, 40, $black, TTF_DIR.TTF_FONTFILE,TTF_TEXT);
header ("Content-type: image/png");
imagepng ($im);
?>
Si no funciona tienes que configurar el php.ini
¿tienes acceso al php.ini o estas en un hosting?
__________________ No tengo firma ahora... :( |