Re: Getting a binary file from URL
| From: | Sigitas Paulavicius | Date: | Sun, 22 Apr 2001 19:25:50 +0000 |
| Subject: | Re: Getting a binary file from URL | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-49754@lists.php.net to get a copy of this message | ||
Solution #1
$contents = fread ($pointer, 1000000000000);
Solution #2
$contents="";
while ($partial = fread ($pointer, 8192)) {
$contents.=$partial;
};