riddla Posted April 17, 2009 Share Posted April 17, 2009 Running PHP 5.1.6... When using the @ operator, the error is correctly suppressed, but the headers are still initialized... Am I missing something? Thanks, Thomas. Link to comment https://forums.phpfreaks.com/topic/154473-using-opperator-header-content-type-texthtml-is-still-sent-why/ Share on other sites More sharing options...
Mchl Posted April 17, 2009 Share Posted April 17, 2009 Am I missing something? The need to post the relevant code. Link to comment https://forums.phpfreaks.com/topic/154473-using-opperator-header-content-type-texthtml-is-still-sent-why/#findComment-812191 Share on other sites More sharing options...
jackpf Posted April 17, 2009 Share Posted April 17, 2009 If you're getting an error, there's obviously something wrong with your code. Don't just suppress it; sort it out. Link to comment https://forums.phpfreaks.com/topic/154473-using-opperator-header-content-type-texthtml-is-still-sent-why/#findComment-812198 Share on other sites More sharing options...
PFMaBiSmAd Posted April 17, 2009 Share Posted April 17, 2009 And the error was probably telling you where the output is being started that is preventing the header from working. Post the error as well to get the quickest solution. Suppressing the error message with the @ does not fix the problem, it just hides the error message, so with the @ in the code not only does not code not work, but it is not telling you why it is not working. Link to comment https://forums.phpfreaks.com/topic/154473-using-opperator-header-content-type-texthtml-is-still-sent-why/#findComment-812257 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.