Include question

Discussion in 'PHP' started by tonicc, Mar 30, 2009.

  1. #1
    Hi,


    Any way to prohibit the files in that superior folder to it may include the files in low level?.

    Example: /home/route/to/path/index.php

    Must can't include : /home/functions.php

    Thank you
     
    tonicc, Mar 30, 2009 IP
  2. LDews

    LDews Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hey there, I am not sure what you mean, can you please explain your problem a bit better please?

    Do you mean such includes as: <?php include('../home.php'); ?>
    Or?
     
    LDews, Mar 30, 2009 IP
  3. tonicc

    tonicc Well-Known Member

    Messages:
    198
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #3
    Hi,

    The problem is with the php.ini

    I have this file in public_html:
    open_basedir=/home/site/public_html/text/

    But the problem is that files in /home/site/public_html/text/ can include files in /public_html/.

    The php.ini don't apply the values to subfolders... how i can do this within include php.ini in each subfolder?

    Thank you
     
    tonicc, Mar 30, 2009 IP