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. 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(). Link to comment https://forums.phpfreaks.com/topic/68295-checking-for-header-output/#findComment-343443 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.