title: AJAX post in PHP returns html comment; renders json return useless
body: <p>I have an index.html page that makes an AJAX request to a PHP page; the expected return is JSON. The code seems to work well. However for some random reason, my PHP file sometimes returns <code>&lt;!-- end of php tag--&gt;</code> before the json text.</p>
  
  <p>The return that breaks the program looks like this:</p>
  
  <p><code>&lt;!-- end of php tag--&gt;{"success":true,"message":"Informacion registrada. Porfavor verifica su telefono."}</code></p>
  
  <p>That html comment breaks the whole thing. The index.html file can't process the file correctly when that comment is returned. I have no idea why that comment gets returned or where it comes from. Its not in any of my code... and when I troubleshoot it, it seems to go away. But then I submit different values and it comes back... Very weird behavior..</p>
  
  <p>Any insight is greatly appreciated! </p>