Possible Duplicate:
Headers already sent by PHP
I am using the header() function to redirect a user to some relative URI, e.g.:
header('Location:/Root/folder');
And everything works perfectly. However if I add Refresh:0; to the beginning of the header()'s parameter I get strange errors and I don't get redirected to the requested URI.
The errors I get are: some undefined POST variables which I use in the function with the header(), and the following arning:
Warning: Cannot modify header information - headers already sent by (output started at...
What is the problem? It doesn't work even with ob_start() and ob_end_flush() at the end...Meta tag doesn't work either, and I won't accept JS code in the PHP script.