Re: Virtual includes

From: Date: Mon, 26 Aug 2002 09:58:08 +0000
Subject: Re: Virtual includes
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-114121@lists.php.net to get a copy of this message
In article <01d301c24ce0$a818d460$63a429c4@tech01>, gregb@exclusivebooks.com says... > 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 > > If you are including from the local file system, you need to use the full pathname, not the URI. Assuming www is really /www, you would need include '/www/forum/include/test.php' -- David Robley Temporary Kiwi! Quod subigo farinam

« previous php.general (#114121) next »