Warning: fopen(/data/f.txt): failed to open stream: No such file or directory in D:\my homework\2.php on line 9 Warning: fclose() expects parameter 1 to be resource, boolean given in D:\my homework\2.php on line 18 这是什么哪里有问题啊?
刚刚解决这个问题
windows下路径得用双反斜杠
例如$file_handle=fopen("E:\\cool.txt","r");
No such file or directory。不是写得很明白了吗,没有这样的文件或目录。fopen()参数有问题