jcampbell1 / simple-file-manager

A Simple PHP file manager. The code is a single php file.
MIT License
914 stars 502 forks source link

I cannot see index.php files #114

Open sapioit opened 3 years ago

sapioit commented 3 years ago

The title speaks for itself. I can neither access a folder as a link, nor access the index file of said folder, unless I change the URL in the browser.

ikwyl6 commented 3 years ago

We can probably help but we need some more information than a generic statement like that. what do you really mean by “you can’t see index.php file”? what browser are you using, can you attach your browser console log (maybe it’s Ctrl-Shift J) after doing a refresh of the index.php page. maybe attach your web server config log and php.ini config file. Does your web server throw any errors in the error.log or the web server log when you load this index.pho file..?

sapioit commented 3 years ago

I have the index.php which is the script of this project, and other (sub)folders with index.php files, and none of those are shown in the list of files.

ikwyl6 commented 3 years ago

Read my comment above and let us know the answers and then we can start to help.

coder0107git commented 3 years ago

I think what @sapioit is saying is that no index.php files are shown (like hidden files on a normal computer file manager). Try changing the line $hidden_patterns = ['*.php','.*']; to $hidden_patterns = ['.*']; and if you want to be able to upload php files try changing the line $disallowed_patterns = ['*.php']; to $disallowed_patterns = [''];. I hope that helps. :)