Page 1 of 1

Determine if headers sent (in regards to AJAX/Classes)

Posted: Fri Feb 29, 2008 12:30 pm
by JAB Creations
Is there a way in PHP to determine if headers have already been sent? I'd like to merge it in to my PHP classes file so I do not have to duplicate it to have one set cookies and the other allow me to use OOP in PHP files that are called via AJAX.

Re: Determine if headers sent (in regards to AJAX/Classes)

Posted: Fri Feb 29, 2008 3:45 pm
by hawkenterprises
what do you know php manual has the answer

http://us3.php.net/manual/en/function.headers-sent.php

Re: Determine if headers sent (in regards to AJAX/Classes)

Posted: Fri Feb 29, 2008 3:48 pm
by JAB Creations
Ahh, the graet Google failed me, even Ask has it for the first result for "php headers sent". :roll: Gah, thank you. :mrgreen: