how to ignore redirection errors in php
<p>I got this warning in php:</p>

<pre><code>Cannot modify header information - headers already sent by (output started at
</code></pre>

<p>When I installed mysql, apache, and php separately but when I'm using Wamp the warning does not exist and the page redirects gracefully.</p>

<p>I have already tried setting the error reporting to only display errors and not warnings and what happened is that the warning didn't show up but the page also didn't redirect.</p>

<p>I know this is already considered bad practice but my code base has a lot of these codes and modifying them all might introduce new bugs to the code.
Is there any way to completely ignore this warning in php?</p>
