note 15041 added to function.read.php
| From: | b_adele at netcourrier dot com | Date: | Sat, 25 Aug 2001 10:13:46 +0000 |
| Subject: | note 15041 added to function.read.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17114@lists.php.net to get a copy of this message | ||
In php 4.0.6
<br>
the next line not work, that block the php code
while (read($this->socket, $out, 2048)) {
$this->data .= $out;
}
<br>
but if you add ">=0" at end of the loop while , it will work.
<br>
while (read($this->socket, $out, 2048)>=0) {
$this->data .= $out;
}
http://www.php.net/manual/en/function.read.php