I have the following directory structure.
-webshop -controllers -webshop.php
In webshop.php I want to get an online store that is the progenitor of this file.
If I use the following, I think I get "controllers".
echo basename(dirname(__FILE__));
How can I get the grandparent directory?
Thanks in advance.
source share