Please answer this simple SPAM challenge: six minus two?
(Example: nine)

The Note You're Voting On

Ilya Penyaev
5 years ago
I was quite stuck when trying to make my script redirect the client to another URL and then continue processing. The reason was php-fpm. All possible buffer flushes did not work, unless I called fastcgi_finish_request();

For example:

// redirecting...
header("Location: ".$redirectUrl, true);
header("Connection: close", true);
header("Content-Length: 0", true);
fastcgi_finish_request(); // important when using php-fpm!
sleep (5); // User won't feel this sleep because he'll already be away
    // do some work after user has been redirected

<< Back to user notes page

To Top