fopen() fail | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponse
0
I think you have forgotten to add extension of the file. ('try.txt','w')
19th Apr 2020, 8:57 PM
Prince