PHP - simple way to send HTTP headers before a script ends

Suppose you want PHP to keep processing after it has sent back an HTTP response. Normally, this doesn't work: <?php header( "Location: https://example.com/" ); // Long operation.

Suppose you want PHP to keep processing after it has sent back an HTTP response. Normally, this doesn’t work:

Write a comment
No comments yet.