ich möchte die config.php in der common.php außerhalb des Document Roots includen.
Damit ich die Datei so includen kann muss ich folgendes Ändern:
Code: Alles auswählen
include($phpbb_root_path . 'config.'.$phpEx);
Code: Alles auswählen
include($phpbb_root_path . 'www/htdocs/LOGINNAME/config.'.$phpEx);
Code: Alles auswählen
Warning: main(.//www/htdocs/LOGINNAME/config.php): failed to open stream: No such file or directory in /www/htdocs/LOGINNAME/ORDNER/phpBB2/common.php on line 216
Warning: main(.//www/htdocs/LOGINNAME/config.php): failed to open stream: No such file or directory in /www/htdocs/LOGINNAME/ORDNER/phpBB2/common.php on line 216
Warning: main(): Failed opening './/www/htdocs/LOGINNAME/config.php' for inclusion (include_path='.:/usr/share/php:..') in /www/htdocs/LOGINNAME/ORDNER/phpBB2/common.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/LOGINNAME/ORDNER/phpBB2/common.php:216) in /www/htdocs/LOGINNAME/ORDNER/phpBB2/common.php on line 220
Mein Hoster Support teilte mir mit:
Was muss ich nun in der ZeileHallo,
wenn ich mir die Zeile
include($phpbb_root_path . '/www/htdocs/LOGINNAME/config.'.$phpEx);
ansehe, komme ich auf die folgende Ursache. Wenn in der Variable $phpbb_root_path der Wert ./ steht, ist es der Fehler. Aus diesem Grund erhalten Sie die Fehlermeldung:
Warning: main(.//www/htdocs/LOGINNAME/config.php):.....
Dort finden Sie am Anfang den Punkt und den folgendes Slash zu viel. Bitte ändern Sie einmal die o.g. Zeile entsprechend ab. Danach sollte dies auch funktionieren.
Code: Alles auswählen
include($phpbb_root_path . '/www/htdocs/LOGINNAME/config.'.$phpEx);
Danke
mfg