what do I set my allowed_include path to?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • lawrence

    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;\pa th2"
    ;include_path = ".;c:\php\inclu des"

    ; 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
  • lawrence

    #2
    what is the default include path?

    lkrubner@geocit ies.com (lawrence) wrote in message news:<da7e68e8. 0311131441.5d01 9755@posting.go ogle.com>...[color=blue]
    > 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;\pa th2"
    > ;include_path = ".;c:\php\inclu des"
    >
    > ; 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[/color]



    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?

    Comment

    Working...