- ignore_user_abort: documentation ( source)
- header: documentation ( source)
<?phpob_end_clean();header("Connection: close");ignore_user_abort(); // optionalob_start();echo ('Text the user will see');$size = ob_get_length();header("Content-Length: $size");ob_end_flush(); // Strange behaviour, will not workflush(); // Unless both are called !// Do processing heresleep(10);echo('Text user will never see');