note 100040 added to function.fread

From: Date: Tue, 21 Sep 2010 13:45:29 +0000
Subject: note 100040 added to function.fread
Groups: php.notes 
Request: Send a blank email to php-notes+get-172721@lists.php.net to get a copy of this message
Somehow all code samples for downloads, described here, doesn't work right for me. When I download a big file readfile or fread in b mode, the final file hasn't the same md5 like the originial. Some tests helps me, finding a solution: $fp = fopen($DownloadFile, 'rb'); while ( $cline = fgets($fp) ) { print $cline; } fclose($fp); Somehow, it's "binary safe" and deliver that file which are read. md5 original and download are the same. ---- Server IP: 69.147.83.197 Probable Submitter: 213.217.108.74 ---- Manual Page -- http://www.php.net/manual/en/function.fread.php Edit -- https://master.php.net/note/edit/100040 Del: integrated -- https://master.php.net/note/delete/100040/integrated Del: useless -- https://master.php.net/note/delete/100040/useless Del: bad code -- https://master.php.net/note/delete/100040/bad+code Del: spam -- https://master.php.net/note/delete/100040/spam Del: non-english -- https://master.php.net/note/delete/100040/non-english Del: in docs -- https://master.php.net/note/delete/100040/in+docs Del: other reasons-- https://master.php.net/note/delete/100040 Reject -- https://master.php.net/note/reject/100040 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#172721) next »