Hello all,
Does anybody know of a way that i can check to see if a header has already
been sent by a script?
I am currently finishing a class that has a few functions registered with
register_shutdown_function(). They take care of database updates and general
clean up for that
I have found something that seems to work:
?php
header('Location: woof.html');
$h = apache_response_headers();
if(isset($h['Location'])){
header('Location: moo.html');
}
die();
?
Typical i get stuck on something for ages and then as soon as i post to the
list i figure something out :) oh
2 matches
Mail list logo