Re: [PHP] Getting a binary file from URL

2001-04-23 Thread Christian Reiniger
On Sunday 22 April 2001 21:25, Sigitas Paulavicius wrote: > Solution #1 > > $contents = fread ($pointer, 1); > > > > Solution #2 > > $contents=""; > while ($partial = fread ($pointer, 8192)) { > $contents.=$partial; > }; But test this before you rely on it. I once did this with (

Re: [PHP] Getting a binary file from URL

2001-04-22 Thread Sigitas Paulavicius
Solution #1 $contents = fread ($pointer, 1); Solution #2 $contents=""; while ($partial = fread ($pointer, 8192)) { $contents.=$partial; }; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PR

RE: [PHP] Getting a binary file from URL

2001-04-22 Thread Jaime Torres
Well, it use to happen... [from function.filesize.html] int filesize (string filename) This function will not work on remote files; the file to be examined must be accessible via the server's filesystem. Ok, I screwed up. But now that I know what went wrong, how can I override this? The docs sai