note 19588 rejected from function.fflush by spic
| From: | spic@php.net | Date: | Thu, 29 Aug 2002 13:53:47 +0000 |
| Subject: | note 19588 rejected from function.fflush by spic | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-35983@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");
}