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 object and i want to be able to perform a different action 
depending on if, for example, a 'Location:' header has been sent.

        Is there any way i can get a list of headers already sent from a script?

        I know i could write a custom myHeader() type function that stores the sent 
headers in a variable and then read it back but i want something that i can 
add to my class and not have to make any changes to other scripts. The class 
im currently working on is just supposed to be dropped in and is then 
expected to run without the need to update anything else.

        Thanks in advance.

-- 
Regards,
        William Bailey.
        Pro-Net Internet Services Ltd.
        http://www.pro-net.co.uk/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to