<?php
define("ROOT_LOC", $_SERVER["DOCUMENT_ROOT"]);
?>
on index.php I have something like this (ill use site for example):
require_once('www.site.com/varList.php');
include ($ROOT_LOC."overallHeader.php"); ?>
for some reason, if the overallHeader is in a different folder, it wont work. Say that the overallHeader is in the main directory, if I make a page and put it in www.site.com/test/index.php, it would say this:
Quote
Warning: main(overallHeader.php): failed to open stream: No such file or directory in /usr/home/site/www/test/index.php on line 19
it looks like the varList isnt working and if I try to include a fil in the root directory, it will try to include it in the test directory instead. How can I get the variable to work? When I echoed it, I got nothing. am I defining it wrong?
Edited by TheUnforgiven512, 04 May 2006 - 11:09 AM.
