fopen() fail | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

fopen() fail

$file = fopen("try","w") or die("fail"); this giving "fail" in browser but in php command line interface doing done ! why?

17th Apr 2020, 6:05 PM
Muhammad Belal
Muhammad Belal - avatar
1 Answer
0
I think you have forgotten to add extension of the file. ('try.txt','w')
19th Apr 2020, 8:57 PM
Prince