T
T
Torento203452021-06-21 22:51:55
PHP
Torento20345, 2021-06-21 22:51:55

Why, if the file is called the same as the folder, then php does not want to find it?

There was an admin.php file, everything gave off well.
I decided to create an admin folder and drop everything superfluous there, but after creating the folder, admin.php seemed to cease to exist.
How can I fix this and why is this happening?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Korotenko, 2021-06-21
@Torento20345

You have some kind of rewriter that rewrites addresses, as a result, the address of the admin file is rewritten to the address of the folder and there is no index file

P
pawelfcdd, 2021-06-22
@pawelfcdd

check the path where php is trying to find the file and the files and folders themselves, most likely when transferring the file to the folder, something was written in the code

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question