creating gifs
| From: | marco eyzaguirre | Date: | Mon, 04 Sep 2000 20:30:34 +0000 |
| Subject: | creating gifs | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-2608@lists.php.net to get a copy of this message | ||
hi, this is my rutin for gif create:
(imagen.php)
<?php
Header("Content-type: image/gif");
$string=implode($argv," ");
$im = imagecreatefromgif("images/ban.gif");
$orange = ImageColorAllocate($im, 220, 210, 60);
$px = (imagesx($im)-7.5*strlen($string))/2;
ImageString($im,3,$px,9,"hola",$orange);
ImageGif($im);
ImageDestroy($im);
?>
and this is call from:
(hola.html)
<html><head></head>
<body bgcolor=black>
<img src="imagen.php?hola">
</body></html>
nothing appears when i call hola.html but this appears when i exe image.php:
Warning: Cannot add header information - headers already sent by (output started at
/home/httpd/html/marco/imagen/imagen.php:2) in /home/httpd/html/marco/imagen/imagen.php on line 3
GIF87aÈ?æþýÿÔõòÓäÐïî¿Ûæ®ôë¤÷˧ÛÅ©åÇÉýÈÇùÑÜô«Åù©©ß©°ê-¨íYOÙ¨ZÁ
s¹¥pµ¿r-»vsTnom???z¤¢o̦¼É¨ÀÀÀÀÜÀÁ᪩àÖÝì?âÍ"ÞÍfåëfôô,¹Úr¸ÓAßÉ7æç=ÕÕ
ñç âÀÛ°Ó«áûw¦|±_S^?xmjXuj|D":S>eAJ=4)+D(
&]?GZ%dN?T6²=ksWG~(.s&e>+bY?©·´°¾Å¹Ñ·ª>Þ¥6ݤXâ<]ã¢oÀfmÝodàz».D¹?'Ü?'Þn÷÷çÜÒ<,È?@ÿ?_,f".??^?S<OZ''"".-3D1Y.)/0/0..f"....,,,
"?.,,Z?_,f".,([!D?_,f".??^?S<OZf..............................
etc,etc
Why is that?, can anybody helpme?
(I use Apache/1.3.12 PHP Version 4.0.1pl2)
marco eyzaguirre
lima - peru