Question about reading file streams in 200 sub-blocks!

Source: Internet
Author: User
200 questions about multipart file stream reading !! In PHP, how does one split the file stream? that is to say, after opening a file using fopen, how does one read the file stream in multiple parts? & Nbsp; PS: to upload files in multiple parts, you need to split the files. Currently, you can read the files into strings in multiple parts and write them into temporary files. & nbsp; want to know if there is a way to directly read file streams in parts without using temporary files? & Nbsp; thank you! ------ Solve the problem of reading file streams in parts for help !!


How to split a file stream in PHP, that is, after opening a file using fopen,

How can I read file streams in multiple parts?


PS: to upload files in multiple parts, you need to split the files. Currently, you can read the files into strings in multiple parts and write them into temporary files,

Want to know if there is a way to directly read file streams in parts without using temporary files?

Thank you!

------ Solution --------------------
Are you doing resumable Upload? If not, it is similar.
There are no existing algorithms. why not refer to them?
------ Solution --------------------
I don't understand.

Fopen opened the file, indicating that the file is on the server.

Is it because the server divides files into several portions and sends them to other servers?
------ Solution --------------------
Is it feasible for server1 to partition and cut and store the data to memcache and then assemble the relevant data on the server2 server?
Small files, I guess. 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.