Help needed!

Discussion in 'PHP' started by MarcL, Apr 6, 2007.

  1. #1
    Warning: require_once(config/config.php) [function.require-once]: failed to open stream: Permission denied in /home/hyip/public_html/index.php on line 3

    Fatal error: require_once() [function.require]: Failed opening required 'config/config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hyip/public_html/index.php on line 3

    What should I do?

    Thanks
    Marc
     
    MarcL, Apr 6, 2007 IP
  2. srobona

    srobona Active Member

    Messages:
    577
    Likes Received:
    57
    Best Answers:
    0
    Trophy Points:
    88
    #2
    make sure
    1. the config.php file is within the config folder.
    2. the config folder and the file where you added the 'require_once' code are in a same folder.
     
    srobona, Apr 6, 2007 IP
  3. im2lazy

    im2lazy Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Is config.php included more than one time ?
     
    im2lazy, Apr 6, 2007 IP
  4. MarcL

    MarcL Notable Member

    Messages:
    4,265
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    215
    #4
    so your saying that the file that has the require_once in its code has to be in the config folder?
     
    MarcL, Apr 6, 2007 IP
  5. MarcL

    MarcL Notable Member

    Messages:
    4,265
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    215
    #5
    No, config.php is only in the config folder...
     
    MarcL, Apr 6, 2007 IP
  6. MarcL

    MarcL Notable Member

    Messages:
    4,265
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    215
    #6
    Does anyone know?
     
    MarcL, Apr 7, 2007 IP
  7. bizdakol

    bizdakol Banned

    Messages:
    677
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #7
    check the file owner of config.php.
    should be readable by the web server.
     
    bizdakol, Apr 8, 2007 IP