Help with relative paths in includes.
Hello everyone,
I hope you've seen something like this in popular (PHP)frameworks or wikis or bulletin boards(like dokuwiki). I hope you've realised that these softwares let you change the names of their directory and the software still works(without any other efforts to modify the main script). They use something like a "dynamic" include that finds the needed file where ever it is. I was making a script where I needed a similar thing but unfortunately even with hours of googling, I couldn't find it. So I was wondering if anyone has any idea to achieve this?
Any help would be greatly appreciated. Thanks for your time and patience.:)