Home >Backend Development >PHP Tutorial >Sina sae development cannot write files
Today, I was developing on Sina sae and found that the file could not be written, prompting a permission problem.
The code is as follows:
The error is as follows:
After checking the writing information, I found that I cannot have permission to write files in Sina sae development, so how to solve this problem? Finally, I found that Storage can be used for read and write operations.
added the prefix saestor://, and indeed, no error was reported. The modified code is as follows:
Finally, I found that if you use Memcache, or file Caching requires a prefix, as follows:
If the prefix of the address is saemc://
The above introduces the problem that Sina sae development cannot write files, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.