Streaming file handling in PHP

0 like 0 dislike
4 views
Hello.

I want to organize the uploading of files to the server via HTTP so that the server subsequently posted these files on the local DC++. So I need to calculate the TTH of the file. In PHP the default script is called only after the request has been completely received, and the downloaded file is already in the directory for temporary files. Thus it turns out that the file will have to re-read, and the user will have to wait.

Is there a way to calculate the hash of the downloaded file on the fly, without waiting the end of download?
by | 4 views

4 Answers

0 like 0 dislike
Open the listen socket and accept the file.
Then consider the performance characteristics on the fly
by
0 like 0 dislike
by
0 like 0 dislike
Can offer 2 options — still use perl for the reception of the file, or see how the pecl extension uploadprogress and shaman on signatures. Normal ways don't know.
by
0 like 0 dislike
look in the direction of extension, which were used for ajax file upload with ProgressBar, is now used apc, but there is still something in pecl, Google.
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
asked Apr 4, 2019 by hazratgs
0 like 0 dislike
2 answers
asked Apr 1, 2019 by hazratgs
0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
asked Jun 13, 2019 by pw0ned
110,608 questions
257,186 answers
0 comments
28,757 users