ini_set('display_errors', 1);
echo "hello world";
header("Location: http://www.mysite.com");
Should this code gives the "Cannot modify header, header already sent ..."?
But somehow on my new hosting, this code would not generate errors, and the redirect works.
My question is what is the the set up makes the above codes not generating warning message like "Cannot modify header error, header already sent ..." and make the header redirect working even there are some output before header ("Location: ..") redirect?
Thanks!