Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

SMF default: Inserting a quick require string?

Aloittaja Omega X, huhtikuu 03, 2006, 05:04:31 IP

« edellinen - seuraava »

Omega X

I'm trying input a quick require string but for some reason I can't figure out what's giving me the error.

Fatal error: template_main_above(): Failed opening required '/themes/dimensionsv2/head.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /forums/Sources/Load.php(1607) : eval()'d code on line 169

The Line is:
require_once($_SERVER['DOCUMENT_ROOT'].'/forums/themes/dimensionsv2/head.php');

This is what the code looks like:
<body>';
require_once($_SERVER['DOCUMENT_ROOT'].'/forums/themes/dimensionsv2/head.php');
echo '
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' : '', '>


The require string works perfectly in Babalyon code but dies in the new Default code.

I've double checked and triple checked and I just can't figure it out. I've tried 3 different ways to include/require the string but all attempts fail.

I'm not a keen Php code head so...What am I doing wrong?

Omega X

Nevermind. The punctuation of the path had to be 100% accurate. Its funny how a capital "T" can break things.

Advertisement: