note 42340 deleted from function.headers-list by nlopess

From: Date: Thu, 13 May 2004 13:45:47 +0000
Subject: note 42340 deleted from function.headers-list by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-69567@lists.php.net to get a copy of this message
Note Submitter: Matt AKA Junkie ---- It seems as though the only practical use of this as of now is to make sure your custom header() commands are sent. If not, die() an error message. <? header('Content-type: text/ascii'); $header_array = headers_list(); if (!in_array('Content-type: text/ascii', $header_array)) { die('Header error.'); } ?> But of course, it may be more practical to use headers_sent(), hmm?

« previous php.notes (#69567) next »