note 96373 added to function.fread
| From: | bilalghouri at live dot com | Date: | Tue, 23 Feb 2010 19:09:22 +0000 |
| Subject: | note 96373 added to function.fread | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-166299@lists.php.net to get a copy of this message | ||
hello.
The function dl_file_resumable works with local files only.
I wonder if someone could modify it to work with remote files too.
So far Ive done this :
write my own get remote filesize function.
modified dl_file_resumable , removed the file exist check.
added my remote filesize, it does work then with remote files. but does not resume, I assume its
becuz the check filesize does not have seek support.. Im using curl to get headers for the
filesize...
Maybe someone could improve it.
----
Server IP: 69.147.83.197
Probable Submitter: 111.119.187.114
----
Manual Page -- http://www.php.net/manual/en/function.fread.php
Edit -- https://master.php.net/note/edit/96373
Del: integrated -- https://master.php.net/note/delete/96373/integrated
Del: useless -- https://master.php.net/note/delete/96373/useless
Del: bad code -- https://master.php.net/note/delete/96373/bad+code
Del: spam -- https://master.php.net/note/delete/96373/spam
Del: non-english -- https://master.php.net/note/delete/96373/non-english
Del: in docs -- https://master.php.net/note/delete/96373/in+docs
Del: other reasons-- https://master.php.net/note/delete/96373
Reject -- https://master.php.net/note/reject/96373
Search -- https://master.php.net/manage/user-notes.php