I have a code that redirects to an url with header like
header("Location: $reponseUrl"); 
But I want to echo something before redirecting like
echo "some text here"; 
header("Location: $reponseUrl"); 
But the output comes like
headers already sent by (output started at..)..
Finally i found the solution
It has to be done somthing like this
header("Refresh: 5; url=$reponseUrl");
echo 'some text here'; 
This will echo for 5 seconds then it will redirect.
