What's the best method for checking if your script has already sent the header?
header_sent()
Best regards,
King Louie