|
PHP5中文手册
headers_sent(PHP 4, PHP 5) headers_sent — Checks if or where headers have been sent 说明
bool headers_sent
([ string &$file
[, int &$line
]] )
Checks if or where headers have been sent. 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 HTTP header related error messages. Another option is to use Output Buffering. 参数
返回值headers_sent() will return FALSE if no HTTP headers have already been sent or TRUE otherwise. 更新日志
范例
Example#1 Examples using headers_sent()
<?php |