Annabel_Little54 answered on March 23rd 20 at 19:22
Well, sometimes you need to be a detective )
1) copy the file which is in folder, check if it opens from there(accordingly the case may be in the file encoding or something else)
2) Rename .htaccess in .htaccess_ (check that's not the problem .htaccess), and in folders if there are.
3) Put in a file folder index.php and try to specify the path to the folder in the url, it is possible that somewhere in the settings is noindex(afaik it happens)
4) There is a suspicion that you open files "from other folders" not through the url and using a path like c:\server\localhost\myfolder\some.php then of course be interpreted your files won't be stupidly open as the hypertext markup language.
Newton.Waters answered on March 23rd 20 at 19:24
If there are any file .htaccess on your server? Maybe it prohibited the execution of scripts in subdirectories?