Hello,
I have file say config.php which is stored in a user defined folder like /abc/def/config.php
Now this file is included by another file like /test.php and this file is called in the browser.
Now I want to find the path of the config.php from the root site. Usually we can use SCRIPT_FILENAME. But that is not possible because that will be related to test.php and not config.php.
So I call http://www.abc.com/test.php which includes http://www.abc.com/abc/def/config.php and I want the following: "/abc/def/"
How do I get this?
Thank you for your time.