I've a custom script to include into Joomla 3.x page. This script is into folder "foo" on the Joomla installation root. This script has inside references to others secondary scripts in its own folder. For make this I've used a "content plugin" that permit the script execution.
The problem is that this plugin execute the php script as if it were in the installation root and not in the folder "/foo" Running the script in this way, the others secondary scripts are not seen it.
Then I've set the php path variable into the script, but it not solve:
ini_set('include_path', 'foo');
How could be possible to handle this kind of situations?