200 sub-block read file stream related issues!

Source: Internet
Author: User
200 points for help block read file stream problem!!


How to read a file stream in PHP, that is, when a file is opened with fopen,

How can I read a file stream in chunks?


PS: Because you want to block the file upload, so you need to split the file, the current method is to block read into the string, and then write to the temporary file,

Want to know if there is a way to read the file stream directly, instead of using temporary files?

Thank you!

------Solution--------------------
You seem to be working on a breakpoint, right? If not, it's something like that.
There is not a ready-made algorithm, why not refer to it?
------Solution--------------------
I don't understand.

Fopen Open the file, the file is on the server side

Is it the server that divides the files into other servers?
------Solution--------------------
Server1 will it be possible to store the chunked cut to memcache and then server2 the server-side to assemble the relevant data?
Small file I guess can haha
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.