Hello forums!!
I need your suggestion in the following case.
I have some 3rdparty script which have its own configuration file(say config.php) for db settings, folder dir, base url etc.
I want to use it my framework and want to use the framework Db settings, folder settings, url settings to the 3rd party config file.
Generally 3rd party has some folders and generally includes the config.php file @ the top.
for example: 3rdparty/libs/someapplication.php
<?php
include('../includes/config.php');
.......
What i want is: i want to include my framework config file @ the top so that i can re-use the variables.
For example:
3rdparty/includes/config.php
<?php
include('../../my_framwork_includes/config.php');
//use framework settings here...
....
and will be using this config.php to 3rdparty application files.
This works only for application files under 3rdparty/libs/... but wont work if the files are in the base or some other nested folder and the reason is obvious.
How to deal in such case so that the 3rdparty/includes/config.php file can be used along with the framework config vars.
Thanks in advance for the valueable suggestion.
Regards