rameshfaj Posted June 15, 2007 Share Posted June 15, 2007 I uploaded the my site but the header already sent problem occured: Warning: Cannot modify header information - headers already sent by (output started at /home/jobspkr/public_html/login.php:9) in /home/jobspkr/public_html/login.php on line 130 We had the mechanism to solve that problem locally but in the web space how to solve the problem? And actually why such problem arises? The name of the site is mentioned in the image below.Any kind of help is appreciated! [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/55687-warning-cannot-modify-header-information-headers-already-sent-by-output-star/ Share on other sites More sharing options...
mmarif4u Posted June 15, 2007 Share Posted June 15, 2007 These errors arises bcoz u send html or other data to process before the header. R u using sessions, if yes try to put it at the top of every page. Don't put any html before header. Quote Link to comment https://forums.phpfreaks.com/topic/55687-warning-cannot-modify-header-information-headers-already-sent-by-output-star/#findComment-275159 Share on other sites More sharing options...
atitthaker Posted June 15, 2007 Share Posted June 15, 2007 If possible, you can also turn buffering on, but this shall work only if the output is being sent from a single page. If you are trying to output from one file and that file is including some other file, check with the second file, it may be containg some space before output is sent, which is sent prior to header. And results in the error you are getting. Hope this helps Quote Link to comment https://forums.phpfreaks.com/topic/55687-warning-cannot-modify-header-information-headers-already-sent-by-output-star/#findComment-275193 Share on other sites More sharing options...
rameshfaj Posted June 17, 2007 Author Share Posted June 17, 2007 Yes it does contain the file that calls several other files. The buffer_on doing was easier on the local machine but as I have uploaded the site,I didnt find how to do that.In coding also, we have the header after the html tag. Quote Link to comment https://forums.phpfreaks.com/topic/55687-warning-cannot-modify-header-information-headers-already-sent-by-output-star/#findComment-276126 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.