I want a send the response as fast as possible to the user. The response is a redirect to an other page. unfortunately the script ends with sending the header location. When I use flush first the output is allready sent, so the redirect wont work.
here is a logical example of what i want to achieve:
header("location: https://xxxx.xx");
flush();
some_time_consuming_function_with_no_output();
is there a way to combine flush and a redirect? any help highly appreciated.
Best endo