note 19588 added to function.fflush
| From: | coyo at irresponsiblecybernetics dot com | Date: | Tue, 05 Mar 2002 01:24:05 +0000 |
| Subject: | note 19588 added to function.fflush | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-27342@lists.php.net to get a copy of this message | ||
Flush error messages? I am using the following code and flush is not working for me. I'm
trying to connect to a local example server, and I'd like to flush the buffers between the
fputs.
$fp = fsockopen ("localhost", 9000, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)";
} else {
fputs ($fp, "g");
if( flush( $fp ) == false ) {
echo "ARGH";
}
fputs ($fp, "2");
}
--
http://www.php.net/manual/en/function.fflush.php
http://master.php.net/manage/user-notes.php?action=edit+19588
http://master.php.net/manage/user-notes.php?action=delete+19588
http://master.php.net/manage/user-notes.php?action=reject+19588