0
What's wrong? I cant read my file.txt
2 Answers
+ 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.