For example, I have a long php scripts, reading dozens maybe hundreds rss feeds and parsing them, etc.
If in the middle of process, there is error such as feeds urls cannot be accessed, or rss fees formats are wrong, or it is not utf8 encoding as it should be etc. The process will be terminated. And error message will be displayed. And the end of this script will never be reached.
If in the middle of process, there are php notice shows (not error but notice), display the notice and continue the process.
If the process reaches the end, not terminated in the middle, then it means the process is successful (even in the middle of process, some php notice will be displayed), and then only at this point, I want to redirect to another page.
Usually, we can use the header redirect. But due to in the process, there are notices displayed, header redirect won't work.
I don't want to use javascript or meta tag client side redirect approach. Because this script could not only run from browser but also could run under command line on the server. So javascript or meta tag won't work always.
Any help?