My situation: I have a class that I want to use in a number of places, so I placed it high in the directory tree:
/www/libs/classA/classA.php
It uses a config file located in the same directory called config.ini
and references it locally in the constructor. However, when I include it from a script in a different directory, it tries to load the config file from the directory the calling script is in. Is there any way I can look in the directory the included file is in? Ideally I could move the script to a different directory and not make any changes to it.