TheBoss Posted August 15, 2009 Share Posted August 15, 2009 hi guys, I recently wrote out a new registration script and im getting the following error message: Warning: Cannot modify header information - headers already sent by (output started at /home/ctnenter/public_html/config/setup.php:1) in /home/ctnenter/public_html/register.php on line 32 now iv checked for white space and there is not that should really be effecting the script, and there is no white space what so ever. There are no headers in the setup.php file either so could you please give me some advice on how to find why im getting this or maybe tell me how to fix it. If you need anything else just tell me. Thanks Mike Quote Link to comment https://forums.phpfreaks.com/topic/170416-header-errors/ Share on other sites More sharing options...
wildteen88 Posted August 15, 2009 Share Posted August 15, 2009 This could be a file encoding issue. Make sure you saving file as ASCII encoding or UTF-8 without BOM. Setting the File Encoding will be available in your editors Save dialog box. Quote Link to comment https://forums.phpfreaks.com/topic/170416-header-errors/#findComment-899017 Share on other sites More sharing options...
0xyGen Posted September 8, 2009 Share Posted September 8, 2009 add your php file first line <? //first line ob_start(); /* Code */ // the last line ob_end_flush(); ?> Quote Link to comment https://forums.phpfreaks.com/topic/170416-header-errors/#findComment-914565 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.