Please help!!

Discussion in 'PHP' started by xtremenitro911, Feb 6, 2009.

  1. #1
    Hello everyone. I just uploaded a myspace graphics site script and I'm getting a few errors and was wondering if anybody could help me out. Here are the error codes I'm getting.

    When I go to thesite.com/admin I get this:

    Warning: require_once(/home/username/public_html/include/db.php) [function.require-once]: failed to open stream: No such file or directory in /home/layout/public_html/apps/admin/admin_entrance.php on line 2

    Fatal error: require_once() [function.require]: Failed opening required '/home/username/public_html/include/db.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/layout/public_html/apps/admin/admin_entrance.php on line 2


    And when I go to the index page I get this one:

    Warning: require_once(/home/username/public_html/include/db.php) [function.require-once]: failed to open stream: No such file or directory in /home/layout/public_html/apps/home/index.php on line 2

    Fatal error: require_once() [function.require]: Failed opening required '/home/username/public_html/include/db.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/layout/public_html/apps/home/index.php on line 2
     
    xtremenitro911, Feb 6, 2009 IP
  2. steelaz

    steelaz Peon

    Messages:
    47
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Your script can't find /home/username/public_html/include/db.php file.

    Check your "include" directory for db.php file
     
    steelaz, Feb 6, 2009 IP
  3. xtremenitro911

    xtremenitro911 Banned

    Messages:
    579
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I just checked, and it is there.
     
    xtremenitro911, Feb 6, 2009 IP
  4. steelaz

    steelaz Peon

    Messages:
    47
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Check your whole path, db.php file seems to have different path from admin_entrance.php file:

    /home/username/public_html/include/db.php
    /home/layout/public_html/apps/admin/admin_entrance.php
     
    steelaz, Feb 6, 2009 IP
  5. xtremenitro911

    xtremenitro911 Banned

    Messages:
    579
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thank you all for your help. I just paid somebody to do it. I'm no pro at php so i have these problems from time to time. Thanks for the help.
     
    xtremenitro911, Feb 6, 2009 IP