Today, I was fixing a website which has some issues with page redirection in php.
There is no issues on the code.
But still I got these error.
Warning: Cannot modify header information – headers already sent by (output started at /home/htdocs/site/donate_us.php:1) in /home/htdocs/site/donate_us.php on line 3
Searched internet for a fix.
All are telling to remove any space before <?php and after ?>
There is no space there.
While breaking head for a solution, suddenly, thought of alternate ways to implement the page redirection.
And, it works fine 🙂
Lesson learned : Think towards the solution. Dont stuck with current problem.