(PHP 3>= 3.0.8, PHP 4 )
bool headers_sent ()
bool headers_sent
This function returns TRUE if the HTTP headers have already been sent, FALSE otherwise.
See also header()