php include - above root directory

Discussion in 'Scripts, 3rd Party Apps, and Programming' started by tillabong, Jan 10, 2010.

  1. vishal

    vishal -::-X10 Guru-::- Community Support

    Messages:
    5,255
    Likes Received:
    192
    Trophy Points:
    63
    Its because the path o the folders are set with user permissions for eg RWX.?In order to access u must have to enable this to RWX or atlest RX..
     
  2. descalzo

    descalzo Grim Squeaker Community Support

    Messages:
    9,375
    Likes Received:
    327
    Trophy Points:
    83
    Make sure that 'user' is your cPanel username
    Make sure that the directory Database (not database ... capitalization matters) has permissions 755
    Make sure db_connect.php is the correct spelling/capitalization.

    EDIT/ADD

    The error I see now on your site is:

    that does not look like the path you described.
     
    Last edited: Jan 13, 2010
  3. misson

    misson Community Paragon Community Support

    Messages:
    2,572
    Likes Received:
    72
    Trophy Points:
    48
    ~/public_html/mysite.com would be the doc root for an addon domain. ~/public_html is the doc root for your primary domain. Anything under ~/public_html is accessible through the primary domain, unless you take steps to secure it.
     
  4. vishal

    vishal -::-X10 Guru-::- Community Support

    Messages:
    5,255
    Likes Received:
    192
    Trophy Points:
    63
    tillabong u first try it in your local pc.Then upload it in ur server and chek. Double sure u had all ur parameters is correct.As far as i am conserned it was possible to refer relative path.It must be some permisson issue or some parameters
     
  5. tillabong

    tillabong New Member

    Messages:
    60
    Likes Received:
    0
    Trophy Points:
    0
    im sure i got the path correct the capitalization and user and stuff. how do i change the permission thingy?
     
  6. misson

    misson Community Paragon Community Support

    Messages:
    2,572
    Likes Received:
    72
    Trophy Points:
    48
    You can use cPanel file manager. Many FTP clients also support changing permissions. All directories in the path to the script need, at minimum, read & execute permissions for the user (mode 0500); the most permissive mode you should use is 0755. Scripts need at least read permisson (mode 0400); their most permissive mode should be 0644.
     
  7. tillabong

    tillabong New Member

    Messages:
    60
    Likes Received:
    0
    Trophy Points:
    0
  8. zomux2000

    zomux2000 New Member

    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    set_include_path() will help...
     

Share This Page