[ad_1]
Use the boolean-returning function headers_sent to determine if headers have been fully sent (implying that some content has also been sent too).
[ad_2]
solved How can I know the body content is outputted (then cannot use the header function)? [closed]