Charlies I am not getting this error on my local PC, but when I upload the scripts to the hosting provide I get this error. When you change headers in PHP it must be BEFORE all the output sent by that script. Franz-josef Behr Incredible that this problem was caused by the BOM byte…. I guessed it such as a complicated problem but truly it is just simple problem, I fixed it by deleting unnecessary lines in closing php tag… http://lolwutsrsly.com AdamT @aneesniittch is awesome. this

It should fix it. We have a pretty neat little community here. 🙂 http://www.holyblasphemy.net Derek You're a genius! below is what index.php is now... Another common example is in redirecting the user's browser to a different web page using the Location header element as described in this tech-recipes article.

rich also, I didn't have this error using PHP version 5.4.3.0, which was the EasyPHP on my local Windows computer. Your participation helps us to help others. more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Homepage more hot questions lang-php about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Science Other

My problem was, as you said, hiding in plain site. No header() redirect code and the line involves my setcookie() function elz thought i would add that my problem was easily fixable via the same methods as it is still technically Alla I love you. chitvendra Skssumit744 $b){ $body .= sprintf("%20s: %sn",$b,$_REQUEST[$a]); } $headers2 = "From: [emailprotected]"; $subject2 = "Thank you for contacting us"; $autoreply = "Thank you for contacting us.

thanks Anonymous Not sure if this has been said already, but it's well worth checking any inclued PHP files too. https://www.geeklog.net/faqman/index.php?op=view&t=38 I cannot see an include? 0 Message Author Comment by:runnerjp20052010-02-14 Comment Utility Permalink(# a26567260) Ok we have some progression... I'm new to php and I have to admit this has been by far the best explanation EVER and I managed to fix my problem! MetalGarurumon Thanks!

Log in or register to post comments Add child issue, clone issue News itemsDrupal news Planet Drupal Association news Social media directory Security announcements Jobs Our communityCommunity Getting involved Services, Training http://humerussoftware.com/cannot-modify/cannot-modify-header-information-headers-already-sent-by-header.php What crime would be illegal to uncover in medieval Europe? I had all my php code before the HEAD without any whitespace. (you can't imagine how many times I pressed the delete key trying to get rid of white space that Bt got the solution in this site….

ahsan this is just a whitespaces problem, goto output line number, find whitespace and remove that, that's it Chris Wren Thank you much, I had one space of whitespace. Hope this leads other people with PHP header problems in the right direction! myGod..

Emmanuel Afonrinwo Thanks a lot, after reading and carefully looking through the codes paying attention to your advice theproblem was resolved.

In this case, the output buffer is flushed and no more changes can be made to your header. http://www.tech-recipes.com Quinn McHenry Your database query may not be returning a valid result. Anonymous thx bro Nawedita Thanks…..i solve my problem by this site. anything outside tags) before you call header().

Please fill in ALL the required fields."; exit; } //KILL SPAMMERS foreach($_POST as $value){ if(stripos($value,'Content-Type:') !== FALSE){ echo "You are a spammer"; exit; } } if ($_POST["address"] !=""){ echo "You didn't ML I'm new at this and erased ?> on a php file i messed with. Turning off debugging on the SMTP module resolved the issue. news JbW kEEP GETTING THIS SAME MESSAGE:Warning: Cannot modify header information - headers already sent by (output started at /home/vmbc/public_html/Admin/VMBCAdmin_login.php:11) in /home/vmbc/public_html/Admin/VMBCAdmin_login_2.php on line 50 How can I have the header() call

Erased ?> and works like a charm. A white space after the close php tag in an ‘include' file caused my hours of frustration. Nniesen Add this to the top of your code: ob_start(); Chenzhou_liufaming thanks rich Good grief! 2 hours of my life lost! http://www.the19XX.com/ Paul Thanks, I just had this problem, and your post solved it!