I have a little framework. The core files are placed on the directory /system/.
This files are System.php, Dispatch.php, Settings.ini.
Inside the system direcotrory are sub directories such as /commands/, /gui/.
Now all that you need to include on a client file is the file System.php which reads settings.ini and makes it avaible through an array to all child classes. The code reading code from system.php is simply:
fopen("Settings.ini", w) or die ("Error");
This works great however when system.php is included by a client coder into a a file outside the directory System/ the file cannot be read.
I want to make this flexible. Do you have any solutions?