Hi, I am experiencing problems including custom php code atm. I tried to include a script at the first line of the admin header.tpl. I use an absolute path to include the file, but it gives me an error:
{php}
ini_set('error_reporting',E_ALL);
ini_set('display_errors','1');
require('/home/user/abspath/custom.php');
{/php}
Fatal error: require(): Failed opening required '/home/user/abspath/custom.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/user/abspath//templates_c/%%52^525^525DC5F2%%header.tpl.php on line 8
What am I doing wrong? The rendered file has the absolutely right path in it.