File handling | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

File handling

does anyone can help me? fopen('file','w') is not creating any file and fwrite();is not writing anything in my local disk I am using xamp ,local server in linux.... I am stuck for the whole day. feel free to comment

5th Jul 2017, 10:05 AM
Ermyas
Ermyas - avatar
2 Answers
+ 2
I just changed file permission to 777 and now it's working
5th Jul 2017, 12:20 PM
Ermyas
Ermyas - avatar
0
Use double quotes. fopen("file", "w");
5th Jul 2017, 11:32 AM
soman