note 28246 added to function.header
| From: | tagg_maiwald at yahoo dot com | Date: | Tue, 07 Jan 2003 02:26:08 +0000 |
| Subject: | note 28246 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-41775@lists.php.net to get a copy of this message | ||
For portable php [from dev to prod systems, for instance], you can conditionally code:
<?php
$sz_htstatus=('cgi'==php_sapi_name())?'Status:':'HTTP/1.0';
$sz_htstatus.=' 404 Not Found';
header ($sz_htstatus);
?>
--
http://www.php.net/manual/en/function.header.php
http://master.php.net/manage/user-notes.php?action=edit+28246
http://master.php.net/manage/user-notes.php?action=delete+28246
http://master.php.net/manage/user-notes.php?action=reject+28246