note 61196 deleted from function.echo by tularis
| From: | tularis@php.net | Date: | Thu, 01 Nov 2007 09:15:08 +0000 |
| Subject: | note 61196 deleted from function.echo by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-131909@lists.php.net to get a copy of this message | ||
Note Submitter: rwruck
----
It should be mentioned here that the script will be aborted if you output something in response to a
HTTP HEAD request.
In the following example, the second line will NOT be written to the file. Any registered shutdown
function will be called, though:
<?php
$hf = fopen('head.log', 'ab');
fwrite($hf, "before output\n");
echo "Test";
fwrite($hf, "after output\n");
fclose($hf);
?>
This is normal behaviour; see the description of $_SERVER.