RE: [PHP-WIN] Re: Include virtual?
| From: | Dash McElroy | Date: | Fri, 28 Feb 2003 21:30:16 +0000 |
| Subject: | RE: [PHP-WIN] Re: Include virtual? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-18783@lists.php.net to get a copy of this message | ||
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:cg@gordimer.net]
> Sent: Friday, February 28, 2003 2:53 PM
> To: Charles P. Killmer
> Subject: Re: [PHP-WIN] Re: Include virtual?
>
> charlesk@netgaintechnology.com (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
>
>