anybody can help to fix php code?

Discussion in 'PHP' started by Master Directory, May 2, 2009.

  1. #1
    Fatal error: require_once() [function.require]: Failed opening required 'include/config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/decent/public_html/init.php on line 134

    what is this mean actually, and how to fix it?
     
    Master Directory, May 2, 2009 IP
  2. luckyluck

    luckyluck Peon

    Messages:
    225
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You edit file config.php at line 134.
    Fix path to file init.php
     
    luckyluck, May 2, 2009 IP
  3. Pos1tron

    Pos1tron Peon

    Messages:
    95
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    The file config.php does not exist in the include subfolder of public_html (or it is not available for including, but most likely it doesn't actually exist).
     
    Pos1tron, May 2, 2009 IP
  4. mdrobiul

    mdrobiul Peon

    Messages:
    186
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    check your file/folder location or path carefully. place the config.php under a folder 'include"
     
    mdrobiul, May 3, 2009 IP
  5. pixmania

    pixmania Peon

    Messages:
    229
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    The file init.php is looking for a config.php file. Which should be inside the folder called include.

    You are receiving this error message because the file init.php cant find the file config.php inside the folder include, or it cant find the folder include which is suppose to contain the file config.php.

    So now that you know what the error message means, you need to look at your / directory structure and locate the include folder and check to see if it truly contains a file called config.php.

    By all accounts the file init.php thinks the folder include is located in the same place as itself, thats the way the file was written so you shouldn't need to edit it.

    Files and folders located in public_html/ example :

    admin
    images
    include // and inside this folder a file called config.php
    admin.php
    index.php
    init.php

    Perhaps you neglected to upload the folder include or its contents. Check also folder and file names, Include is different to include pending on your server type.

    Yeah I know its a long winded answer, :) just elaborating on the above replies.
     
    pixmania, May 3, 2009 IP
  6. Master Directory

    Master Directory Well-Known Member

    Messages:
    3,351
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    135
    Digital Goods:
    1
    #6
    www.decentweblinks.com is the site
    everytime i open show that error message,after refresh its back to show the site normal. its not too often.
     
    Master Directory, May 3, 2009 IP
  7. smb

    smb Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I just tried it and got a DNS error

    Network Error (dns_server_failure)
     
    smb, May 5, 2009 IP
  8. Master Directory

    Master Directory Well-Known Member

    Messages:
    3,351
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    135
    Digital Goods:
    1
    #8
    yes my server down, but its up now
     
    Master Directory, May 5, 2009 IP