note 59078 rejected from function.header by nlopess
| From: | nlopess@php.net | Date: | Fri, 25 Nov 2005 19:22:34 +0000 |
| Subject: | note 59078 rejected from function.header by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-99100@lists.php.net to get a copy of this message | ||
Note Submitter: ftrujillo at adinet dot com dot uy
----
this code display message error in the browse....
I'm not say ...
<?php
function img($string){
Header("Content-type: image/png");
$im = ImageCreate(300, 300);
$red = ImageColorAllocate($im, 255, 0, 0);
$white = ImageColorAllocate($im, 255, 255, 255);
$blue = ImageColorAllocate($im, 0, 0, 255);
$black = ImageColorAllocate($im, 0, 0, 0);
ImageFill($im, 0, 0, $red);
ImageString($im, 5, 210, 30, $string, $black);
ImagePng($im);
return($im);
}
echo "<html><body>
<img src=".img('aceptar').">
</body></html>";
?>