欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

关于php使用fopen报错 failed to open stream: Permission denied

程序员文章站 2022-04-05 20:21:52
...
andy@AndyMacBookPro:~/Downloads$ ll wz_1223.csv
-rwxrwxrwx 1 andy staff 42082362 12 23 14:09 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

从这里:http://*.com/questions/10376048/fopen-permission-denied-on-a-file-with-777-permissions

看到这句话:

I'll have a look at whether safe mode is enabled. As for the folder, the permissions are also set to 777.