: This article mainly introduces the error failedtoopenstream: Permissiondenied when using fopen in php. if you are interested in the PHP Tutorial, refer to it. Andy @ AndyMacBookPro :~ /Downloads $ ll wz_1223.csv
-Rwxrwxrwx 1 andy staff 42082362 12 23 wz_1223.csv *
Andy @ AndyMacBookPro :~ /Downloads $
Warning: fopen (/Users/andy/Downloads/wz_1223.csv): failed to open stream: Permission denied in/usr/local/webdata/andy/fanli/job/job1.php on line 16
From here: http://stackoverflow.com/questions/10376048/fopen-permission-denied-on-a-file-with-777-permissions
See this sentence:
I'll have a look at whether safe mode is enabled. As for the folder, the permissions are also set to 777.-personne3000 May 2 '12
Then my file is here:
/Users/andy/Downloads/wz_1223.csv
I copied the video to the/usr/local/webdata/directory.
Then you can ~~~ It is indeed a directory permission issue...
The above introduces the error "failed to open stream: Permission denied" reported by php using fopen, including some content. I hope my friends who are interested in the PHP Tutorial will be helpful.