I have some defines in my index.php, with values pointing to some folders. I want to avoid the anoying requires:
require_once("something/../../../file.php")
The problem (because of the scope) is that Those defines are lost when I try to use them in another php file, then I need to make again require_once("/../../......etc"), or define them again.
How can I avoid this to have something like:
require_once(PATH_LIBRARY1."/my_file.php")?