We used to get below error when using header() in our php code.
Warning: Cannot modify header information - headers already sent by (output started at...
The reason/root cause for this warning is due the fact "No other information can be sent to the server before the Header".
This "headers already sent" error is usually caused by having white space before or after the opening and closing PHP tags (<?php . . . ?>).
So, remove any white space before or after these tags.
If you still get this error even after removing white space, you need to check whether you put echo of any text before using header().
Use of ob_start() at start of the code may resolve this issue.
More Articles...
Search This Blog
Blog Archive
-
▼
2009
(257)
-
▼
September
(27)
- Google Sidewiki Comments.
- Google Hot Trends in Search Result itself.
- Go directly to the desired section of the web page...
- Goolge's response to AT&T's letter to FCC on Googl...
- Showing latest blogposts in our website
- Vote for selecting Best Idea that will be sponsore...
- PubSubHubbub protocol for getting the RSS/Atom fee...
- Amazon Hot Deals
- Google sidewiki for making universal commenting fo...
- Setting up aStore provided by Amazon.com
- Combine multiple Blogger RSS Feeds using Yahoo pip...
- Business News
- Google's letter to FCC about Google Voice rejectio...
- News about Google and Google products
- Make Book from your Blogger Blog
- Google acquires reCAPTCHA
- Started new Blog "Start Learning and Show your tal...
- Software Testing News and Articles
- Strange Behaviour of Browser Back button.
- Does "Safe Mode" of PHP really give any benefit?
- FileZilla - Free FTP Client for doing ftp thro' se...
- Handling "headers already sent" Error
- Cache issue in Blogger Blog
- Steps for PHP installation.
- Truncating Feed Item Description without affecting...
- We have started our another Development Center at ...
- Global Tech News
-
▼
September
(27)

AI Course | Bundle Offer | Unlocking AI | Dream Big | Listen to Dream Big
Today's Deals | Timesheet | Products | SQL ebook | Earn 50% commission
About | Privacy | Follow | TOS | WhatsApp | Contact
I may earn a commission from Amazon affiliate links
No comments:
Post a Comment