fopen() fail | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
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 Antwort
0
I think you have forgotten to add extension of the file. ('try.txt','w')
19th Apr 2020, 8:57 PM
Prince