What's wrong? I cant read my file.txt | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
15th Nov 2019, 2:17 PM
Maxim Khasanov
Maxim Khasanov - avatar
1 Réponse
+ 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