How to configure paths in PHP on the server?

I moved a PHP project to a new server and ran into a problem:
Wappler uses relative paths inside the API, for example

require(’…/…/dmxConnectLib/dmxConnect.php’);

But now PHP can’t find this path
only if you use

__DIR__.

but clearly there must be another way for this to work?

It was necessary to set ‘open_basedir’ to none in the PHP settings - maybe it will be useful to someone :slight_smile:

1 Like