note 31029 added to function.header
| From: | pmdMadrid at hotmail dot com | Date: | Mon, 07 Apr 2003 16:59:45 +0000 |
| Subject: | note 31029 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-46312@lists.php.net to get a copy of this message | ||
I'm using the header to download a rpm file. First I used the following code to upload the
file:
$fp=fopen("$filename", 'r');
fpassthru($fp);
fclose($fp)
The file download fine, but the size of that was different from the original
Then I change that code by
readfile("$filename");
and all was fine.
--
http://www.php.net/manual/en/function.header.php
http://master.php.net/manage/user-notes.php?action=edit+31029
http://master.php.net/manage/user-notes.php?action=delete+31029
http://master.php.net/manage/user-notes.php?action=reject+31029