Next Nov 5 Previous
Whoops, already sent
PHP has a function named headers_sent()
that lets you check if the HTTP headers created with header()
are already sent. But when does PHP actually send these headers?
A: directly after each call to header()
B: before the first line of output
C: after the last call to header()
in your script
D: that depends whether you use output buffering or not
Choose the best answer.