Discussion in 'Scripts, 3rd Party Apps, and Programming' started by ullalax1, Oct 24, 2013.
error : headers already sent
please help me I'm not able to open new page.
Make sure that nothing -- not even whitespace -- is sent by the script before you try to send special headers.
If a php file has a blank line before the opening <?php tag, then that line is sent and you cannot change/add to the headers.
In addition to the answer by Descalzo, You can also try putting <?php @ob_start(); ?> at top of your php file before everything. A complete detail about the function can be found at php.net documentation. Main cause for the error is that you are echoing outputs before the headers statements. Rule is that the headers must not occur after any output created by the script, output may includes spaces and all possible characters.
Separate names with a comma.