At 11:12 AM 8/26/2002 +0200, you wrote:

 > I'm trying include .php files which reside in alternative directories or
 > sub-directories. Such as a file which reside in www/chat/page.php, and for
 > this page I would like to include a file which resides in www/forum/include/

Using $DOCUMENT_ROOT has always worked just fine for me when working in 
other directories. It's much easier to have a solid point of reference than 
have to change levels.

For example:

$userDataFile = "$DOCUMENT_ROOT/forums/users/{$userName}.php";

would look for the file in $userDataFile in
S. Keller
UI Engineer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Pkwy.
Anchorage, AK 99508
907.770.6200 ext.220
907.336.6205 (fax)

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to