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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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? |