What's wrong? I cant read my file.txt | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
15th Nov 2019, 2:17 PM
Maxim Khasanov
Maxim Khasanov - avatar
1 Antwort
+ 4
the path to the file is wrong. $i=fopen("ar.txt", "ar"); the ar. txt has to exist in the same directory as the html file. or you have to write the full path to it. the first case is not possible because these files are on the Sololearn servers. the second case, has to be on some server that is accessible publicly.
15th Nov 2019, 2:29 PM
Bahhaⵣ
Bahhaⵣ - avatar