note 59396 added to function.print

From: Date: Mon, 05 Dec 2005 21:48:38 +0000
Subject: note 59396 added to function.print
Groups: php.notes 
Request: Send a blank email to php-notes+get-99607@lists.php.net to get a copy of this message
I have a small utility run from the command line that processes a potentially huge list of files. As it can take hours to complete, I stuck a print '.'; statement in the body of the main loop to prove that something was happening. For reasons unknown to me, the utiliity suddenly started buffering the output such that it printed nothing until completion, defeating the purpose of the running monitor. Adding flush() statements did nothing. The problem was solved by using fputs(STDOUT, '.'); but I have no idea why. ---- Manual Page -- http://www.php.net/manual/en/function.print.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+59396 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59396&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59396&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59396&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59396&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59396&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59396&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59396&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+59396&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#99607) next »