hassank1 Posted November 2, 2008 Share Posted November 2, 2008 sometimes I' sent a header twice by mistake..however when I test the script on localhost (I'm using wamp).. I don't get the error [headers already sent .. etc..] however,when I upload the site online I got this error.. so how can I make my localserver to show this error.. so to be able to fix it before uploading the site online? Link to comment https://forums.phpfreaks.com/topic/131117-headers-already-sent-not-shown-on-localhost/ Share on other sites More sharing options...
Mchl Posted November 2, 2008 Share Posted November 2, 2008 WampServer has output buffering enabled by default. Check for it on php.ini. Link to comment https://forums.phpfreaks.com/topic/131117-headers-already-sent-not-shown-on-localhost/#findComment-680754 Share on other sites More sharing options...
hassank1 Posted November 2, 2008 Author Share Posted November 2, 2008 I've found this line : output_buffering=4096 what should I do to disable it ? Link to comment https://forums.phpfreaks.com/topic/131117-headers-already-sent-not-shown-on-localhost/#findComment-680756 Share on other sites More sharing options...
Mchl Posted November 2, 2008 Share Posted November 2, 2008 ;output_buffering=4096 (add semicolon at the beginning... or just delete the line all together) Link to comment https://forums.phpfreaks.com/topic/131117-headers-already-sent-not-shown-on-localhost/#findComment-680758 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.