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.