PHP header shows blank page - how to trace it sent any other header before this?
<p>I tried with making <code>display_errors</code> to 1 and <code>error_reporting(E_ALL)</code> to check whether any error or something. Code looks fine but it fails to redirect the page. It shows just blank page . If I use echo <code>'&lt;script&gt; window.location = 'someusrl'; &lt;/script&gt;'</code> it works.</p>

<p>How can I trace the code where it exactly sends a header already ? Its a huge code and it includes thousands of files </p>

<p>When I do header_list() i am getting </p>

<pre><code>array(6) {
  [0]=&gt;
  string(23) "X-Powered-By: PHP/5.3.5"
  [1]=&gt;
  string(38) "Expires: Mon, 26 Jul 1997 05:00:00 GMT"
  [2]=&gt;
  string(44) "Last-Modified: Wed, 07 Nov 2012 13:00:58 GMT"
  [3]=&gt;
  string(50) "Cache-Control: no-store, no-cache, must-revalidate"
  [4]=&gt;
  string(40) "Cache-Control: post-check=0, pre-check=0"
  [5]=&gt;
  string(16) "Pragma: no-cache"
}
</code></pre>

<p>Here anything that blocks redirection ?</p>

<p><code>header_remove()</code>  also didn't worked. I have added this function just before the redirection call.</p>
