Error reported by fopen (r +) in php development

Source: Internet
Author: User
In php development, fopen (r +) reports an error in the public platform development on Sina Cloud. if you want to read csv files and write data, you are always prompted that you do not have the write permission. how can you modify the csv write permission on the cloud, I can add write permissions locally, but an error is reported when I upload the data to the cloud. I developed it using php and reported an error in fopen (r + ).


Reply to discussion (solution)

Sina Cloud (including all clouds) cannot use file functions
They must use the virtual file system management class they provide.
Please read their development manual for specific application and use

The reason is simple:
Because of the huge traffic volume, it is not what a single server can afford. you must use server load balancer or server cluster
So your website is not sure that it was started from that server, so the file system on the server won't be available.
A virtual file system covering all servers must be created to map files stored on physical machines.

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.