elem/config.inc.php:
$base = $DOCUMENT_ROOT;
$basedir = "C:\myserver\root\mtrx\AbacusQ";
$lang = "russian"; // Default language
$style = "business"; // Default style
$phpex = ".php"; // Php file suffix
$incex = ".inc.php"; // Include file extension
$libex = ".lib.php"; // Include file extension
$elem = "../elem"; // Include elements, common for all styles
$lang_vars = $elem . "/lang/" .$lang . $phpex; // Language file, default russian
$blocks = $base . "/blocks"; // Include elements, common for all styles
$style_fld = $base . "/" . "style"; // Include elements, common for all styles
$style_set = "$DOCUMENT_ROOT/style/" . $style; // Style/skin root location
$img = "$DOCUMENT_ROOT/style/" .$style. "/images"; // Style img elements
$css = "$DOCUMENT_ROOT/style/" .$style. "/style.css"; // Custom Style Sheet
$home_url = $base; // Associated category folder
$admin_url = $elem . "/admin"; // Associated category folder
$contact_url = $base . "/contact"; // Associated category folder
The problem is - how to write and what to write in $base, so it works on UNIX, Windows Apache platforms. I would prefer relative paths, but they seem to get lost on some servers. Is there a good solution for that?