Right but it could be in a helper, a component, a config file, a ....

you might also try using output control buffers
http://us2.php.net/manual/en/ref.outcontrol.php



On 10/12/06, tom <[EMAIL PROTECTED]> wrote:
>
> I had noticed that before and checked: no newlines before <?php on
> runs_controller or the view (graph.thtml)
>
> The view code is
>
> <?php
> header("Content-type: image/png");
> $im = @imagecreate(100, 50)
>    or die("Cannot Initialize new GD image stream");
> $background_color = imagecolorallocate($im, 255, 255, 255);
> $text_color = imagecolorallocate($im, 233, 14, 91);
> imagestring($im, 1, 5, 5,  $data, $text_color);
> imagepng($im);
> imagedestroy($im);
> ?>
>
> On Oct 12, 4:30 am, "meek" <[EMAIL PROTECTED]> wrote:
> > Looking at the image source, I'm pretty sure there's some extra
> > whitespace in there. - two newlines before the 'PNG' is outputted.
> > Maybe you have some newlines outwith the <?php ?> tags?
>
>
> >
>


-- 
==
S. DeVore
(the old fart) the advice is free, the lack of crankiness will cost you

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to