Answer the question
In order to leave comments, you need to log in
How to find out the name of the folder in which the php file is located?
I have a problem, I need to make sure that php displays the name of the folder in which it is located in a variable. I tried the __DIR__ command but it displays the full path to the folder, and I only need the folder name. Couldn't find any information on google. Thanks in advance)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question