New line before header()

Posted by MetalAdam on Stack Overflow See other posts from Stack Overflow or by MetalAdam
Published on 2010-06-15T13:54:18Z Indexed on 2010/06/15 14:02 UTC
Read the original article Hit count: 115

Filed under:
|
|

I'm working with a custom made Joomla script that generates an image from a blob in a database. However, when we moved it from an Apache server to an IIS server, the script is breaking.

Upon investigation, it seems that now, there is a line break that is getting appended before the header function is being run (when I comment out the image portion, and do an echo "test";, test gets printed on line 2 of the source code.

I've gone through the script over and over again, and through the many files in the component, and can't seem to find out where this new line is coming from. At all.

I've tried using ob_start() and many similar functions, but nothing seems to work.

I'm completely out of ideas, and don't know where to turn.

Is there a way to trace what files are being called in the page, perhaps? Any thoughts on further steps?

© Stack Overflow or respective owner

Related posts about php

Related posts about joomla