[PHP] How can one find out what Headers have been sent by a script.

2003-09-18 Thread William Bailey
Hello all, Does anybody know of a way that i can check to see if a header has already been sent by a script? I am currently finishing a class that has a few functions registered with register_shutdown_function(). They take care of database updates and general clean up for that

Re: [PHP] How can one find out what Headers have been sent by a script.

2003-09-18 Thread William Bailey
I have found something that seems to work: ?php header('Location: woof.html'); $h = apache_response_headers(); if(isset($h['Location'])){ header('Location: moo.html'); } die(); ? Typical i get stuck on something for ages and then as soon as i post to the list i figure something out :) oh