some user does not know php well. therefore they mistakenly use ob_start.
If you use header functions such as header (), cookie (), session, you do not need to send any output. these functions should be used from before exiting.
but some user should stop sending output using the ob_start function or output buffering.
so you can use javascript or meta-forwarding to redirect the user.
<script language="javascript"> window.location = 'some.php'; </script>
or you can use meta refresh to redirect the user.
<META HTTP-EQUIV="Refresh" CONTENT="0;URL=some.php">
if you really need to use the header function, you should not send any output (do not forget to enter a character or space or display the signature of UTF-8)
sdemirkeser
source share