note 61196 added to function.echo

From: Date: Fri, 27 Jan 2006 21:15:20 +0000
Subject: note 61196 added to function.echo
Groups: php.notes 
Request: Send a blank email to php-notes+get-102584@lists.php.net to get a copy of this message
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. ---- Server IP: 217.13.201.10 Probable Submitter: 85.183.132.90 (proxied: 1.1 router.local.rw-it.net:8080 (Squid/2.4.STABLE7)) ---- Manual Page -- http://www.php.net/manual/en/function.echo.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+61196 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61196&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61196&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61196&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61196&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61196&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61196&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61196&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+61196&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#102584) next »