note 14174 added to function.fgets.php
| From: | ('@',array'tmp404','yahoo.com') | Date: | Thu, 19 Jul 2001 20:03:11 +0000 |
| Subject: | note 14174 added to function.fgets.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-15601@lists.php.net to get a copy of this message | ||
for icecube and everybody else:
there is undocumented difference between fread and fgets:
fgets - stops reading on ZERO ASCII CHARACTER - chr(0)- and also doesn't include it in return
value
c0nclusion: when dealing with binary files you should use fread which is pure binary read
have fun
http://www.php.net/manual/en/function.fgets.php