Possible Duplicate:
SITE_ROOT = Variable?
How can I get this:
define ('SITE_ROOT', $_SERVER['DOCUMENT_ROOT'] . SITE_BASE);
to look something like this:
define ('SITE_ROOT', [variable from domain.com/dir/data.php] );
I'd very much appreciat开发者_开发知识库e if someone could help me with a solution.
Many thanks.
You probably need to include the data.php file before you define the SITE_ROOT constant. Like this:
<?php
require_once('data.php');
define('SITE_ROOT', $yourVariableFromDataDotPHP);
?>
Although it looks a bit weird...don't know the context of course.
精彩评论