does a directory out of the web root need to be in the INCLUDE ini setting to be accessible?

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

    #1

    does a directory out of the web root need to be in the INCLUDE ini setting to be accessible?

    If you have a directory that is out of hte web root, do you have to incluid
    eit in the php.ini setting for INCLUDE for it to be useable by web pages?

    For example, if your directories look like:
    /files/
    /files/library/database_connec t.php
    /files/www/(website files here)

    Would a page in /files/www/ be able to access
    /files/library/database_connec t.php wihtout /files/library/ being in the
    INCLUDE setting of php.ini?


  • Jerry Stuckle

    #2
    Re: does a directory out of the web root need to be in the INCLUDEini setting to be accessible?

    NotGiven wrote:[color=blue]
    > If you have a directory that is out of hte web root, do you have to incluid
    > eit in the php.ini setting for INCLUDE for it to be useable by web pages?
    >
    > For example, if your directories look like:
    > /files/
    > /files/library/database_connec t.php
    > /files/www/(website files here)
    >
    > Would a page in /files/www/ be able to access
    > /files/library/database_connec t.php wihtout /files/library/ being in the
    > INCLUDE setting of php.ini?
    >
    >[/color]

    No. Any file on the system can be accessed by PHP subject to permission
    restrictions.

    --
    =============== ===
    Remove the "x" from my email address
    Jerry Stuckle
    JDS Computer Training Corp.
    jstucklex@attgl obal.net
    =============== ===

    Comment

    Working...