IIS, Apache, and header()
Posted
by MetalAdam
on Stack Overflow
See other posts from Stack Overflow
or by MetalAdam
Published on 2010-06-09T14:29:13Z
Indexed on
2010/06/09
14:32 UTC
Read the original article
Hit count: 129
I'm working on migrating a website from an external server (running Apache) to a local server (running IIS), and have come across an issue that I can't seem to resolve.
The site is using a custom Joomla plugin that grabs some graphics stored in a mysql database (for e.g. http://www.norfolktourism.ca/index.php?option=com_bdirectory&task=image&cid=191). However, when I migrate the site to the local server, the images are broken.
Upon further exploration, I've discovered that somehow, when ran on the local server, their seems to whitespace (as in a new line) gets processed before the header() function is processed, hence breaking the image (however, I don't get an error - just a broken image).
I'm absolutely baffled as to what the issue may be, as the code works fine on the external Apache server.
Would anyone have any suggestions on possible resolutions?
© Stack Overflow or respective owner