note 28246 deleted from function.header by sniper
| From: | sniper@php.net | Date: | Sun, 07 Sep 2003 21:38:47 +0000 |
| Subject: | note 28246 deleted from function.header by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-55635@lists.php.net to get a copy of this message | ||
Note Submitter: tagg_maiwald@yahoo.com
----
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);
?>