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 www.mypage.com/forums/users/
--
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)
Email: [EMAIL PROTECTED]
Web: www.healthtvchannel.org


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to