Join Up!
96819 members and counting!

 
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links 
search for in the  
previousheadersetcookienext
Last updated: Tue, 29 Oct 2002
view the printer friendly version or the printer friendly version with notes or change language to Czech | Finnish | German

headers_sent

(PHP 3>= 3.0.8, PHP 4 )

headers_sent -- Returns TRUE if headers have been sent

Description

bool headers_sent ( string &file [, int &line])

This function returns TRUE if the HTTP headers have already been sent, FALSE otherwise. You can't add any more header lines using the header() function once the header block has already been sent. Using this function you can at least prevent getting the "Duplicate headers ..." error messages.

The function will return the php source file and line number where output started in the optional file and line parameters if these are given.

Nota: file and line where added for PHP 4.3.0.

See also header() for a more detailed discussion of the matters involved.

User Contributed Notes
headers_sent
add a note about notes
There are no user contributed notes for this page.
previousheadersetcookienext
Last updated: Tue, 29 Oct 2002
Copyright © 2001, 2002 The PHP Group
All rights reserved.
This mirror generously provided by: http://phpbuilder.com/
Last updated: Thu Oct 31 18:34:28 2002 EST