Give it a try headers_sent().
PHP docs on headers_sent () .
You can also get the headers for the get_headers () page and list them using headers_list () . I'm a bit confused, though, you mean you want to check if something like header("Location: /path/to/location");this is caused ?
source
share