title: php script can't send headers because headers have already been sent, but are characters outside the script
body: <p>This are my first two lines:</p>
  
  <pre><code>&lt;?php
  header('Content-Type: application/x-javascript');
  </code></pre>
  
  <p>And it gives me the headers already sent in line 1.</p>
  
  <p>It is intended to generate a JavaScript file that loads from an HTML page, when checked the JavaScript file from Firebug i got the following file:</p>
  
  <pre><code>1  ï»¿&lt;br /&gt;
  2  &lt;b&gt;Warning&lt;/b&gt;: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\totoro\Js\libs.php:1) in &lt;b&gt;C:\Program Files\Apache Group\Apache2\htdocs\totoro\Js\libs.php&lt;/b&gt; on line &lt;b&gt;1&lt;/b&gt;&lt;br /&gt;
  3  var Totoro = {}, $t = Totoro;
  </code></pre>
  
  <p>As you can see, it spits a character that looks like garbage characters, but nothing is sended, the first line is a <code>header</code> function call. What might be the problem?</p>