Hello I have the following html code:
<img src="http://opteynde.com/bild.php?text=hello";>

And this PHP code
<?php
header("Content-type: image/jpg");
if (!isset($text))
  {
    $text = "Missing data";
  }

$font  = 4;
$width  = ImageFontWidth($font) * strlen($text);
$height = ImageFontHeight($font);

$im = @imagecreate ($width,$height);
//white background
$background_color = imagecolorallocate
                 ($im, 255, 255, 255);
//black text
$text_color = imagecolorallocate ($im, 0, 0,0);
imagestring ($im, $font, 0, 0,  $text, $text_color);

imagejpeg ($im);
?>

The result is allways "Missing data" and not hello.
Whats wrong???
Thanks for a quick answer in advance.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to