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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

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

Post 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.
User avatar
hawkenterprises
Forum Commoner
Posts: 54
Joined: Thu Feb 28, 2008 9:56 pm
Location: gresham,oregon
Contact:

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

Post by hawkenterprises »

what do you know php manual has the answer

http://us3.php.net/manual/en/function.headers-sent.php
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

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

Post 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:
Post Reply