In my PHP framework, I want to use several functions of another PHP framework. That other framework has only one portal script (index.php). From there it does everything (bootstrap, call controllers and actions etc). The other framework includes all its files starting with ./

The other framework's index.php:

```
include './inc/bootstrap.php';

```

In bootstrap.php:

```
include './inc/configs.php';
include './inc/database.php';

```

etc etc

So it looks like all the includes are relative to the folder index.php is in.

Is there any way to set up the environment so I can bootstrap the framework from another folder (somewhere within my framework, so a completely different folder and not the portal script)?

`include_path` includes `.` and I've tried it with the other framework's folder in the include\_path as well but that didn't change anything.

I'm guessing it's the ./ includes, but I can't change those (the other framework isn't part of my framework and will be updated some time). Is there a way around them (or am I doing it plain wrong)?