[eluser]Narf[/eluser]
[quote author="Jeffrey McManus" date="1352492256"]> any output, including echoing from the controller, will cause a problem
Why? Why is this a problem echoing from CI when it's not a problem echoing the identical data from PHP/mysql?
[/quote]
Because your "pure PHP/mysql" script either doesn't send custom headers or sends them at its very start, while CodeIgniter will send headers
after your controller code is executed.
This also answers your other question:
[quote author="Jeffrey McManus" date="1352492256"]
> you probably have some white space characters outputted
It's difficult to see how something like this could be the problem, since it's happening consistently with several separate files.[/quote]
I don't know why you're not seeing any error_messages though, unless you've set your environment to 'production'.