I have a PHP app running on a cloud-based Ubuntu server and for some reason, I am getting a newline at the start of every HTML file or XHR response.
I have a local version of the app running on Ubuntu, and this newline does not appear.
Specifically, the bad responses have one additional character with ASCII code 10 prepended to each response.
I am using the Agavi framework, version 0.9.2 (yes, old!) as the PHP web framework. I have been able to insert echo statements into my custom Views and the newline still appears first in the response.
So is it Apache or Agavi or something else doing this?