svens0n Posted November 4, 2011 Share Posted November 4, 2011 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. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.