I assume you don't want site A to include site B's PHP files, correct?

The best solution I can think of (I hope you are using Apache...) would be
to have php configuration items set on a per virtual host directory. For
site a you would have:

php_flag openbasedir e:\sites\sitea

and site b would have:

php_flag openbasedir e:\sites\siteb

(syntax may be incorrect...it's off the top of my head and I just got a
haircut...)

You could also have include dirs set per site as well if you wanted
include files out of the sites\sitea directories.

-Dash

God made the Idiot for practice, and then He made the School Board
                -- Mark Twain

On Fri, 28 Feb 2003, Charles P. Killmer wrote:

> Good idea but, we host many sites and cannot have them all using each
> others include directories.  Also don't want to use ini_set at the top
> of every file, if that can be set per_dir.
>
> Charles
>
> -----Original Message-----
> From: Christoph Grottolo [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 28, 2003 2:53 PM
> To: Charles P. Killmer
> Subject: Re: [PHP-WIN] Re: Include virtual?
>
> [EMAIL PROTECTED] (Charles P. Killmer) wrote:
>
> >I think my original question has been lost.
> >
> >
> >Include("/template.php");
> >
> >I want this to include the file located at
> >e:\sites\website1\template.php
> >Not
> >e:\template.php
>
> edit include_path in your php.ini file: add e:\sites\website1 to the
> existing include path.
>
> include("template.php") without slash.
>
> If you don't use cgi, restart your webserver.
>
> HTH
>
> Christoph
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


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

Reply via email to