Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/09/2005, 07:49
Avatar de tyo100
tyo100
 
Fecha de Ingreso: febrero-2005
Ubicación: Monterrey, NL
Mensajes: 475
Antigüedad: 19 años, 2 meses
Puntos: 1
Pues es muy sencillo

pones este
Código PHP:
<?
header
("Content-type: image/png");
$im imagecreate(200,200);
$fondo imagecolorallocate ($im255,255,255);
$rojo imagecolorallocate ($im255,0,0);
imageline($im100100800800$fondo);
header("Content-type: image/png");
imagepng($im);
imagedestroy($im);
?>
o pones este
Código PHP:
<?
if (imagetypes() & IMG_GIF) {
echo 
"El tipo GIF es soportado<br>";
}else{
echo 
"El tipo GIF NO ES SOPORTADO<BR>";
}
if (
imagetypes() & IMG_PNG) {
echo 
"El tipo PNG es soportado<br>";
}else{
echo 
"El tipo PNG NO ES SOPORTADO<BR>";
}
if (
imagetypes() & IMG_JPG) {
echo 
"El tipo JPG es soportado<br>";
}else{
echo 
"El tipo JPG NO ES SOPORTADO<BR>";
}
if (
imagetypes() & IMG_WBMP) {
echo 
"El tipo WBMP es soportado<br>";
}else{
echo 
"El tipo WBMP NO ES SOPORTADO";
}
?>
o pones este, pero no los 3
Código PHP:
<?
header
("Content-type: image/jpeg");
$im imagecreate(200,200);
imagejpeg($im);
imagedestroy($im);
?>
__________________
Desde la tierra de los nopales, las tortillas de maiz, y en cuya ciudad se encuenta el cerro de la silla.
NalgAss Web
SpiderMex - La Historia del Hombre Araña en MEXICO