Liquid Fire Posted September 7, 2007 Share Posted September 7, 2007 Is there a way to check for a header output? I am build a API that includes a class the will generate a excel(.csv) file. I want to be able to error out to the user the the header was already sent if they try to create an excel after the header has been sent in a cleaner way than php telling them and then killing the script. Quote Link to comment https://forums.phpfreaks.com/topic/68295-checking-for-header-output/ Share on other sites More sharing options...
trq Posted September 7, 2007 Share Posted September 7, 2007 Has no one heard of the manual? headers_sent(). Quote Link to comment https://forums.phpfreaks.com/topic/68295-checking-for-header-output/#findComment-343443 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.