PHP output buffer is not empty?
<p>I have this peculiar problem. I am making an AJAX call to a PHP page. In case of error I am returning the string "error" to success: <code>function(msg)</code> i.e. msg will have the value "error". But for some reason it is sending back "error" but with a line break preceding it. And this fails the condition when i check <code>if (msg=="error")</code>. I have to put <code>ob_clean()</code> to clear out the output buffer. Then it returns "error" without line break. I checked but my PHP function is not outputting anything before the "error". What can be the issue that the output buffer is not empty?</p>
