what do I set my allowed_include path to?

This is a discussion on what do I set my allowed_include path to? within the PHP Language forums, part of the PHP Programming Forums category; I've a server with 50 domains in the vhosts folder. I want all 50 websites to run from a ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-13-2003
lawrence
 
Posts: n/a
Default what do I set my allowed_include path to?

I've a server with 50 domains in the vhosts folder. I want all 50
websites to run from a single copy of a PHP/MySql cms. Here is a
typical path to the index.htm file of a site:

/usr/local/www/vhosts/publicpen.com/htdocs/index.htm


For all the domains to share this software, I want to put the cms
here:

/usr/local/www/

Normally PHP won't let include() grab things that far above a web
site. I realize I need to set a path in php.ini. I go look at that
file, and this is what I see (below). I'm confused about what I need
to set. It's all commented out. What is the default, then?






;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"

; The root of the PHP pages, used only if nonempty.
doc_root =

; The directory under which PHP opens the script using /~usernamem
used only
; if nonempty.
user_dir =

; Directory in which the loadable extensions (modules) reside.
extension_dir = ./

; Whether or not to enable the dl() function. The dl() function does
NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is
automatically
; disabled on them.
enable_dl = On
Reply With Quote
  #2 (permalink)  
Old 11-15-2003
lawrence
 
Posts: n/a
Default what is the default include path?

lkrubner@geocities.com (lawrence) wrote in message news:<da7e68e8.0311131441.5d019755@posting.google. com>...
> I've a server with 50 domains in the vhosts folder. I want all 50
> websites to run from a single copy of a PHP/MySql cms. Here is a
> typical path to the index.htm file of a site:
>
> /usr/local/www/vhosts/publicpen.com/htdocs/index.htm
>
>
> For all the domains to share this software, I want to put the cms
> here:
>
> /usr/local/www/
>
> Normally PHP won't let include() grab things that far above a web
> site. I realize I need to set a path in php.ini. I go look at that
> file, and this is what I see (below). I'm confused about what I need
> to set. It's all commented out. What is the default, then?
>
>
>
>
>
>
> ;;;;;;;;;;;;;;;;;;;;;;;;;
> ; Paths and Directories ;
> ;;;;;;;;;;;;;;;;;;;;;;;;;
>
> ; UNIX: "/path1:/path2"
> ;include_path = ".:/php/includes"
> ;
> ; Windows: "\path1;\path2"
> ;include_path = ".;c:\php\includes"
>
> ; The root of the PHP pages, used only if nonempty.
> doc_root =
>
> ; The directory under which PHP opens the script using /~usernamem
> used only
> ; if nonempty.
> user_dir =
>
> ; Directory in which the loadable extensions (modules) reside.
> extension_dir = ./
>
> ; Whether or not to enable the dl() function. The dl() function does
> NOT work
> ; properly in multithreaded servers, such as IIS or Zeus, and is
> automatically
> ; disabled on them.
> enable_dl = On




I guess what I'm really asking is, by default, how many levels above
the website does PHP let you go? It looks like the include_path is
commented out in my php.ini file, so I imagine some kind of default is
at work. Or are there no limits, if it is commented out?
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:12 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0