Alexander Alexander - 1 year ago 127
PHP Question

Include typo3 LocalConfiguration.php

How can I include typo3's LocalConfiguration.php into my script (which is NOT inside typo3)? Since that file returns an array:

return [
'BE' => [

I thought I have to put the include into a function:

function getConf() {
$conf = getConf();

but the output is empty.

Answer Source

Just inlcude it directly to the variable:

$conf = include 'typo3conf/LocalConfiguration.php';
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download