Re: Virtual includes

From: Date: Mon, 26 Aug 2002 16:29:33 +0000
Subject: Re: Virtual includes
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-114154@lists.php.net to get a copy of this message
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: skeller@healthtvchannel.org Web: www.healthtvchannel.org

« previous php.general (#114154) next »