How can I know the body content is outputted (then cannot use the header function)? [closed]
How can I know the body content is outputted (then cannot use the header function)?
Use the boolean-returning function headers_sent
to determine if headers have been fully sent (implying that some content has also been sent too).
By checking the return value of headers_sent()
if(!headers_sent())
精彩评论