
24/06/2011, 11:41
|
 | | | Fecha de Ingreso: enero-2011 Ubicación: $cubano->Arg->Mendoza
Mensajes: 1.184
Antigüedad: 14 años, 1 mes Puntos: 209 | |
Respuesta: no pder copiar una palabra lo mejor es convertir el texto a una imagen
algo así
Código:
<?php
// texto a convertir
if( isset($_GET['string']) && !empty($_GET['string'])) $string = trim($_GET['string']);
else $string = "Hola mundo!";
// tamaño de la imagen
$im = imagecreate(strlen($string)*9, 30);
// fondo blanco y texto azul
$bg = imagecolorallocate($im, 255, 255, 255);
$textcolor = imagecolorallocate($im, 0, 0, 255);
// escribimos el texto en la parte superior-izquierda
imagestring($im, 5, 0, 0, $string, $textcolor);
// mostrar la imagen
header("Content-type: image/png");
imagepng($im);
//imagedestroy($im);
?>
|