Ver Mensaje Individual
  #9 (permalink)  
Antiguo 23/06/2008, 18:50
Avatar de Carlmycol
Carlmycol
 
Fecha de Ingreso: diciembre-2007
Ubicación: Los Teques, Venezuela
Mensajes: 240
Antigüedad: 18 años, 10 meses
Puntos: 3
Respuesta: Php GD Image - get

Disculpen no se si estoy llegando tarde ;).

Código PHP:
<?php
header
("Content-type: image/png");
$string = $_GET['nombre'];
$im = imagecreatefrompng("background.png");
$black = imagecolorallocate($im, 0, 0, 0);
$px = (imagesx($im) - 22 * strlen($string)) / 2;
imagestring($im, 5, $px, 3, $string, $black);
//Ese tres viene a ser la x es decir horizontal
imagepng($im);
imagedestroy($im);
?>
Puedes seguir poniendolo abajo ;) mira aqui


Código PHP:
<?php
header
("Content-type: image/png");
$string = $_GET['nombre'];
$string2 = $_GET['edad'];
$im = imagecreatefrompng("background.png");
$black = imagecolorallocate($im, 0, 0, 0);
$px = (imagesx($im) - 22 * strlen($string)) / 2;
imagestring($im, 5, $px, 3, $string, $black);
//Ese tres viene a ser la x es decir horizontal
imagestring($im, 5, $px, 10, $string2, $black);
//Ahora sale el texto mas abajo del otro :P
imagepng($im);
imagedestroy($im);
?>
Mas o menos asi iria la cosa, debes jugar con el 'x' y la 'y' es decir cambiar la posicion etc :P

salu2