RE: [PHP] Virtual includes
| From: | Scott Houseman | Date: | Mon, 26 Aug 2002 09:44:56 +0000 |
| Subject: | RE: [PHP] Virtual includes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-114118@lists.php.net to get a copy of this message | ||
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:gregb@exclusivebooks.com]
> Sent: 26 August 2002 11:12
> To: php-general@lists.php.net
> 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
>
>