I have to provide a download from a remote url where I dont know the file size.
The problems I had so far
-
I dont know the file size
-
Large file about 100 mb
-
When I provide download for user with CURL/readfile/… then PHP wait as long the ful file and then shows Download Window.
How can I provide a part, stream, chunky downloader?
I want to do something like on phpmyadmin – if you download a sql export – then it streams also.
Thanks in advance.
Streaming is normally done using a small buffer. Lets say you had
allow_url_fopenset to true: