hi guys, i've been trying to get a work around for this:
in a file structure like this:
-----index.php (file inside root)
-----template (folder inside root)
-----user (folder inside root)
-----products (folder inside root)
-----config (folder inside root)
i've been tryoing to use dirname(dirname(FILE)) inside a file in the config folder to define webroot constant but it is not working well, if i try to access the files from other folders, it's calling webroot from the current folder instead of going back to the root.
pls can any1 help me with the code/logic for defining web root in a situation like this. thanks.