Hi,
ich möchte gerne eine PHP in die localconf.php hinzufügen, allerdings erhalte ich immer einen Fehler.
Ich habe im fileadmin ordner eine datei angelegt mit dem Namen user_mobile.php.
wenn ich diese mit
require_once('fileadmin/template/mobile/user_mobile.php');
einfügen möchte erhalte ich im BE folgenden Fehler:
Warning: require_once(fileadmin/template/mobile/user_mobile.php) [function.require-once]: failed to open stream: No such file or directory in /home/www/10488/domain.de/www/htdocs/cms/typo3conf/localconf.php on line 33
Fatal error: require_once() [function.require]: Failed opening required 'fileadmin/template/mobile/user_mobile.php' (include_path='.:/usr/local/php5-apache22/lib/php') in /home/www/10488/domain.de/www/htdocs/cms/typo3conf/localconf.php on line 33
kann mir jemand sagen was ich da falsch mache?
Gruß Leibnitz
fileadmin liegt nicht innerhalb von typo3conf.
require_once('../fileadmin/template/mobile/user_mobile.php');
jetzt beklomm ich im FE einen neuen Fehler:
Warning: require_once() [function.require-once]: Unable to access ../fileadmin/template/mobile/user_mobile.php in /home/www/10488/domain.de/www/htdocs/cms/typo3conf/localconf.php on line 33
Warning: require_once(../fileadmin/template/mobile/user_mobile.php) [function.require-once]: failed to open stream: Permission denied in /home/www/10488/domain.de/www/htdocs/cms/typo3conf/localconf.php on line 33
Fatal error: require_once() [function.require]: Failed opening required '../fileadmin/template/mobile/user_mobile.php' (include_path='.:/usr/local/php5-apache22/lib/php') in /home/www/10488/domain.de/www/htdocs/cms/typo3conf/localconf.php on line 33
dazu vllt. ne idee?
am webserver sind die berechtigungen eigentlich alle richtig gesetzt :-(
Hallo
versuch es mal mit
require_once(PATH_site.'/fileadmin/template/mobile/user_mobile.php');
Gruss
gabba