Hi there. This should work I think.
include( '../forum/include/test.php' ); This uses the path in relation to the current directory the script resides in. Regards -Scott > -----Original Message----- > From: Gregory Barker [mailto:[EMAIL PROTECTED]] > Sent: 26 August 2002 11:12 > To: [EMAIL PROTECTED] > Subject: [PHP] Virtual includes > > > Hi all, > > 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/ > > I've tried the following which just results in a error: > include '/forum/include/test.php'; aqnd multiple variations of it. > > How do I get around this problem? > > Greg > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php