By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,401 Members | 803 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,401 IT Pros & Developers. It's quick & easy.

what do I set my allowed_include path to?

P: n/a
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
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
lk******@geocities.com (lawrence) wrote in message news:<da**************************@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?
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.