补充几点:
1、谢谢yueliangdao0608,但是程序对文件是本地访问,应该和allow_url_open无关;
2、谢谢iasky,我用fileperms看到的文件权限是100666,应该是可以读写的,不知道你说的文件权限什么意思,愿闻其详。
3、我google了好久,有人这么说:“The trouble here is that the 'user' who is owner of the file in this case is not the same user that php is running as, therefore php does not have permission to edit the file.”也许是我朋友当初把文件解开的时候,这些文件所属的用户和我php程序的用户权限不一致……静候佳音……
1、谢谢yueliangdao0608,但是程序对文件是本地访问,应该和allow_url_open无关;
2、谢谢iasky,我用fileperms看到的文件权限是100666,应该是可以读写的,不知道你说的文件权限什么意思,愿闻其详。
3、我google了好久,有人这么说:“The trouble here is that the 'user' who is owner of the file in this case is not the same user that php is running as, therefore php does not have permission to edit the file.”也许是我朋友当初把文件解开的时候,这些文件所属的用户和我php程序的用户权限不一致……静候佳音……
不过一般WIN的不存在权限问题
'r' 开文件方式为只读,文件指针指到开始处。
'r+' 开文件方式为可读写,文件指针指到开始处。
'w' 开文件方式为写入,文件指针指到开始处,并将原文件的长度设为 0。若文件不存在,则建立新文件。
'w+' 开文件方式为可读写,文件指针指到开始处,并将原文件的长度设为 0。若文件不存在,则建立新文件。
'a' 开文件方式为写入,文件指针指到文件最后。若文件不存在,则建立新文件。
'a+' 开文件方式为可读写,文件指针指到文件最后。若文件不存在,则建立新文件。
'b' 若操作系统的文字及二进位文件不同,则可以用此参数,UNIX 系统不需要使用本参数。