When I had the same problem, actually Three newlines before the PNG, it
ended up being a single newline after the ? in Three completely
unrelated controller files. It took me days to figure this one out.
Make sure you are looking for extra whitespace in ALL your files, not
just the ones that are
On 10/12/06, tom [EMAIL PROTECTED] wrote:
Wait - maybe? Ob_clean in the controller seems to do the trick.
Has anyone suggested to the poor fellow to check if any of the files
he is using has the UTF8 BOM at the start of the file ?
Cuz if you're editing any file under UTF8 and your editor, by
Can you post the link to the dynamic images URL please?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group,
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?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
The tutorial is at http://wiki.cakephp.org/tutorials:dynamic-image
On Oct 12, 3:10 am, BlenderStyle [EMAIL PROTECTED] wrote:
Can you post the link to the dynamic images URL please?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
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,
Anywhere else whitespace is already present? Where's this ajax layout
anyway?
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
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
Hmm.. no whitespace in any of the default helpers or components, or any
of the helpers components I've installed, or in any of the default
config files.
I tried output buffering in the view (and using trim()), but the
whitespace is before that. What else is there to do?
On Oct 12, 11:01 am,
clear the buffer first?
On 10/12/06, tom [EMAIL PROTECTED] wrote:
Hmm.. no whitespace in any of the default helpers or components, or any
of the helpers components I've installed, or in any of the default
config files.
I tried output buffering in the view (and using trim()), but the
On 10/12/06, tom [EMAIL PROTECTED] wrote:
Hmm.. no whitespace in any of the default helpers or components, or any
of the helpers components I've installed, or in any of the default
config files.
I tried output buffering in the view (and using trim()), but the
whitespace is before that.
Not sure what you mean?
On Oct 12, 11:20 am, Samuel DeVore [EMAIL PROTECTED] wrote:
clear the buffer first?
On 10/12/06, tom [EMAIL PROTECTED] wrote:
Hmm.. no whitespace in any of the default helpers or components, or any
of the helpers components I've installed, or in any of the
Tried both - no errors being reported, and deleting the contents of TMP
makes no difference. Still two lines of whitespace.
On Oct 12, 11:26 am, Chris Hartjes [EMAIL PROTECTED] wrote:
On 10/12/06, tom [EMAIL PROTECTED] wrote:
Hmm.. no whitespace in any of the default helpers or components,
On 10/12/06, tom [EMAIL PROTECTED] wrote:
Tried both - no errors being reported, and deleting the contents of TMP
makes no difference. Still two lines of whitespace.
Just to be clear, I meant to clean out the CakePHP tmp directory, not
your server's /tmp directory.
Without actually
I was thinking before you start to output your image data do
ob_clean();
see http://us3.php.net/manual/en/function.ob-clean.php
the thing is the sample code works for me in a virgin project with the
current cake version. So my guess is that you have a extra line feed
somewhere, but tracking it
Ugh, I don't know about this. I've tried ob_clean() at the start of the
template, and disabling all helpers, components, and models just to see
if those were the problem, and I'm still getting one line of
whitespace.
On Oct 12, 12:18 pm, Samuel DeVore [EMAIL PROTECTED] wrote:
I was thinking
Wait - maybe? Ob_clean in the controller seems to do the trick.
Thanks!
On Oct 12, 12:29 pm, tom [EMAIL PROTECTED] wrote:
Ugh, I don't know about this. I've tried ob_clean() at the start of the
template, and disabling all helpers, components, and models just to see
if those were the problem,
17 matches
Mail list logo